Entanglement-enhanced quantum ranging in the near-Earth spacetime