Another way to reinforce that A is correct is to make up a question for which this sentence (or a portion of it, in this case) would be the answer. If you do this, a properly structured question would be...
"To what extent is light from a distant galaxy shifted toward the red end of the light sprectrum by the rapid motion of the galaxy away from the earth?"
At least to me, it seems more obvious that the "to" needs to come along with the "extent" when you word is at a question.