It's hard to say without video, but whoever gets there first gets it. Sounds like Rider 2 got there first. 2 got to the lane first but was behind 1, so that makes it an unusual situation. But, based on how the rules are written, it sounds like 1 encroached and impeded - albeit from the front instead of coming over the top.