Republicans could have gained some measures for securing the border, *IF*, they had maintained message discipline. Remember McCarthy did get some (admittedly quite modest) concessions in exchange for raising the debt ceiling, because he was able to maintain message discipline.
Instead of making sure that every republican (or at least member of leadership) that talked to the press brought up Biden’s and Schumer’s intransigence on one point, we had one group of republicans who talked border security, a group that talked about Ukraine, a group that were rooting for Russia, a group that would talk of fiscal offsets, etc.. What was the publicly repeated talking point about the one concession that would get the overwhelming bulk of Republicans on board?