I think, in Ryans view, the down ticket guys are expendable if it means no Trump presidency. If he’s house leader or not doesn’t matter to him long term. He can step up to the trough in any case.
Above all else, the speaker views his job to protect their majority/club.