Twenty-two GOP senators used the Cruz opportunity to say the amnesty is unconstitutional, and three GOP senators were absent.
Check it out:

Twenty-four of 42 GOP senators, including all the GOP leaders, backed the $1.1 trillion 2015 budget that also funds President Barack Obama’s unilateral amnesty.

The Senate’s 56-to-40 vote came as outgoing Democratic Majority Leader Sen. Harry Reid used the broad GOP opposition to the Obama’s amnesty to split the GOP into two factions.

That 20-to-22 split came late Saturday, when Republicans finally had a chance to vote for or against Obama’s amnesty.