McCarthy’s path to the speakership wasn’t always clear, but he got the gavel by giving away everything he could.