President Trump’s immigration framework faced an unexpected opponent this week as it crashed on the Senate floor: Republicans.