The Gang of Eight’s amnesty bill passed out of committee this evening by a vote of 13–5 after Sen. Patrick Leahy agreed to withdraw his amendment allowing American citizens in long-term same-sex relationships to sponsor their foreign partners or spouses for green cards.

Gang of Eight member Sen. Chuck Schumer also encouraged Leahy not to press the committee on the same-sex marriage amendment for fear of scuttling the bill in the full Senate.

The bill is expected to head into debate on the Senate floor early next month.

Texas Sen. Ted Cruz was one of the votes against the bill, claiming that it would incentivize future illegal immigration, calling it “almost utterly toothless with respect to the border.”