The bill was a bipartisan bill though. As described by republican James Lankford:
It is interesting: Republicans, four months ago, would not give funding for Ukraine, for Israel and for our southern border because we demanded changes in policy, [..] And now, it’s interesting, a few months later, when we’re finally getting to the end, they’re like, ‘Oh, just kidding, I actually don’t want a change in law because it’s a presidential election year.’
It’s effect would have been to improve the border. That’s why there were republicans who wanted it passed, because they wanted to improve the border. Some democrats probably also want to improve the border, while some democrats just want to pass the bill to improve the chances that the democrats would be elected again. But the republicans probably don’t want the democrats to win, and probably just wanted to pass the bipartisan border bill to improve the border.
The bill was a bipartisan bill though. As described by republican James Lankford:
It’s effect would have been to improve the border. That’s why there were republicans who wanted it passed, because they wanted to improve the border. Some democrats probably also want to improve the border, while some democrats just want to pass the bill to improve the chances that the democrats would be elected again. But the republicans probably don’t want the democrats to win, and probably just wanted to pass the bipartisan border bill to improve the border.