Refusing to cooperate with Democrats is what sank him.
He needed support from Democrats to keep the Speakership. He's spent the entire year giving them no reason to trust him -- including going on the Sunday shows this week knowing this vote was coming and trying to blame Democrats for the near shutdown.