It took 15 ballots and four days to elect Kevin McCarthy to the role of House speaker in January after days of negotiations within his own party. He was only able to sway fellow Republicans after he made a commitment to rein in spending, a commitment posing significant challenges for him amid the debt ceiling crisis.