If the final ship you need is too big to move out of the gravity well it won't matter how much easier or cheaper it is to build it on the ground. Reality sucks like that. You take the one-time hit for the ship and fly up the parts and fuel, assemble them in a high enough orbit and vacuum, and start start using the ship there. It's a simple binary equation in this case. You either get the ship or you don't.