In combative politics, it's the job of politicians to vote for what they believe in, and against what they disagree with, so if it was as you say they would vote for bad legislation to keep their pay coming. That's a very bad idea.
If it was your way, Ukrainian funding would have been snuck in under cover of funding the government which is not how it should be done. Ukraine is not an American state.
If Biden wants an end to such partisan voting he should get off his butt, and go talk to the opposition, like Clinton did, but seems he's all talk and not much do.