It wasn't at all going that fast when they were about to crash.
Plus, the surface of the Earth is always moving massively quickly, around it's axis, around the sun AND through the ever-expanding void-ish of space. So those portals don't have any problem at all of dealing with a moving target.