Republican Kevin McCarthy’s bid for the role has been thwarted repeatedly by rebels in his own party.