McCarthy was the first House speaker to be voted out of the position in U.S. history.