His ouster marked the first time in history that the House voted to remove its leader, a move that threw the chamber into a period of instability.