NeRC: Neural Ranging Correction through Differentiable Moving Horizon Location Estimation