Same thing any President does when a player on his side in Congress decides their ego overrides the will of the voters. Simply ask his voters at the next election to send the recalcitrant home and replace him with a rational adult replacement.
Someone actually told me in another thread if Trump worked to get Ryan out via primary election or replaced as Speaker it would be Un-Constitutional. I am stunned at some of these folks’ disordered posts.