It works up to 3000km with full precision, you just need a receiver without CoCom limits. (actually, precision should be better without atmosphere). It also works all the way up to geostationary orbit, but with some limitations.
The commercial GPS receiver are just software disabled not to work at certain speed and altitude. There used to be a receiver you can buy that does not have those restriction. You can also build your own GPS receiver and not have the restriction.
GPS orbits at 20,200km from the surface.
Starlink orbits at 550km from the surface. So, relatively, they're basically on the ground, just moving really fast!