The House majority leader dropped out of the race for speaker just days after making questionable comments.