House Speaker Kevin McCarthy finally won the election after 15 ballots held over five days of voting.