House Speaker Paul Ryan told President Trump on Friday that he doesn’t have the votes to pass the GOP’s health care plan — a stunning blow that could also threaten the president’s agenda, according to a new report.

Ryan trekked to the White House personally to deliver the bombshell, and was “not delivering good news,” according to CNN, which cited a GOP source.

A short time later, White House spokesman Sean Spicer repeatedly defended Trump’s effort to win support for the bill — and said it was now up to Congress whether it passes.

“There is no question in my mind at least that the president and the team here have left everything on the field,” Spicer said at his daily press briefing.

“We have called every member that had a question or concern, tried to do the extent possible take in if to considerations, ideas that would strengthen the bill. And it will now be up to the members of the House to decide.”

Spicer repeated “left everything on the field” at least three times during his remarks, but said that in the end, “You can’t force people to vote.”

He did not refute reports that the GOP lacked the votes.

Instead, Spicer said he remained optimistic that the plan would be enacted.

Asked repeatedly who would be to blame should the vote fail, Spicer declined to answer, but repeated that the president had done everything he could do to get it done.

Spicer also denied that a defeat on repeal would have any impact on tax reform or other Trump agenda items, including increases in infrastructure and military spending.

House Republicans need 216 votes to repeal and replace ObamaCare, but were 25 to 28 short as of Thursday night.

“I’m very disappointed in our team that is not on board,” said Rep. Chris Collins (R-NY), Trump’s first supporter in Congress, who has been trying to whip up votes for the legislation.

Asked if there are enough votes, Collins said: “I really don’t know.”

“I’m counting on it passing. But I can tell you right now there’s bitterness within our conference that will take time to heal that, even if it does pass,” Collins said at the Capitol.

“Too many people on our team feel like we have team members that are deserting us.”

Earlier, Trump told lawmakers who oppose abortion that a vote against the health care bill would favor Planned Parenthood.

“The irony is that the Freedom Caucus, which is very pro-life and against Planned Parenthood, allows P.P. to continue if they stop this plan!” he wrote on Twitter.

In a bid to coax support from conservatives, House leaders proposed a fresh amendment repealing ObamaCare’s requirement that insurers cover 10 specified services like maternity care, addiction treatment and mental health care.

Conservatives have demanded the removal of those and other conditions the law imposes on insurers, arguing they drive up premiums.

The president met with members of the Freedom Caucus on Thursday in an effort to win them over. But the vote was postponed after administration officials fell short.

After a ceremony in which he signed off on the Keystone pipeline deal, the president at first ignored questions from reporters about the vote but eventually answered, “We’ll have to see what happens,” the same phrase he used twice on Thursday.

Trump also answered “yes” when asked if Ryan should keep his job if the vote failed.

Vice President Mike Pence canceled a planned trip to Arkansas and Tennessee on Friday to work with Trump as the House was set to vote.

Pence had planned to travel to Little Rock and Memphis, according to a spokesman.

Spicer said the vote would begin about 3:30 p.m.