Rep. Matt Gaetz led the rebellion against Kevin McCarthy after a last-minute deal was struck to avoid a government shutdown.