A pair of top Republican senators said Thursday they had pressed President Trump to get on board with a bipartisan deal to stabilize health insurance markets.

Sens. Lindsey Graham of South Carolina and Lamar Alexander of Tennessee, who cut the deal with Democratic Sen. Patty Murray of Washington, made an urgent plea to the president the night before, Politico reported.

Trump earlier this week praised the deal as a good solution to stabilize the markets for up to two years to give the GOP-led Congress yet another chance to repeal and replace ObamaCare, as they’d vowed to do for seven years.

But on Wednesday he did an about-face and said he’d never support what he called a bailout of health insurance companies.

The bipartisan plan would restore federal subsides — which Trump cut last week — so that health insurers could provide coverage to more low-income Americans, including many in red states.

On Wednesday, Trump told Graham: “I want a deal. I want to get something for this money,” Graham said.

The South Carolina Republican responded by explaining that GOP bills to repeal and replace ObamaCare also continued the law’s subsidy payments and argued the plan is a bridge to the ObamaCare repeal bill he wrote with Sen. Bill Cassidy, a Louisiana Republican.

“I told him that if Graham-Cassidy became law tomorrow, you’ve got two or three years before this thing gets implemented. You’ve got to do something in the interim period,” Graham told the website.

“You can’t save ObamaCare but you can keep the markets from collapsing until we get a replacement, which will be Graham-Cassidy.”