Wha?
So when the Enterprise comes near to the Earth what happens? It just can't escape the Earth's gravity, or does it only get stuck when it's near the Earth's surface? It's not the moon you know; it has engines.
NCC-1701-D is supposed to weigh about 400,000 tonnes. Leaving the Earth's surface to reach LEO requires a delta-v of 10km/s so you've got to accelerate 400,000 tonnes to 10km/s. The Space Shuttle does this and it weighs around 2,000 tonnes. So are we really expected to think that a vehicle 200x the size of the Space Shuttle could not be launched into orbit?