Trump and Musk threatened every Republican in the Senate of getting primaried and taken out if they voted against any of Trump's nominees. Otherwise, Kennedy, Hegseth, Gabbard, etc. would never have been confirmed.
And the Senate is to blame for RFK Jr's confirmation. The vote was 52-48. I suppose some people supported him simply because he's a Kennedy. One detested by his own family.