Careers over? Well, that depends on how they frame it to their constituents.
I would say every Republican ran on turning back the Democratic agenda, then they went and voted for a Democrat to be speaker, the only framing at that is they lied to their constituents.
Think about, if you voted for someone who won as your Representative, and they voted for a Democrat to be Speaker, regardless of the framing, how would you feel.
IMO, enough people would be pissed off to cause the person to lose their next election.