US President Donald Trump has suffered a stunning political setback in a Congress controlled by his own party, when Republican leaders pulled legislation to overhaul the US healthcare system, a major 2016 election campaign promise of the President and his allies.
Republican leaders of the House of Representatives pulled the legislation due to a shortage of votes despite desperate lobbying by the White House and its allies in Congress.
They had planned a vote on the measure after Mr Trump cut off negotiations with Republicans who had baulked at the plan and issued an ultimatum to vote on Friday, win or lose.
Republican moderates as well as the most conservative lawmakers had objected to the legislation.
The White House and House leaders were unable to come up with a plan that satisfied both moderates and conservatives.
Mr Trump told the Washington Post: "We just pulled it."
Amid a chaotic scramble for votes, House of Representatives Speaker Paul Ryan, who has championed the bill, met with Trump at the White House before the bill was pulled from the House floor after hours of debate.
Mr Ryan said he recommended that the legislation be withdrawn from the House floor because he did not have the votes to pass it, and that Mr Trump agreed.
It casts doubt on whether Mr Ryan can get major legislation approved by fractious Republican lawmakers.
"I will not sugarcoat this. This is a disappointing day for us," Ryan said at a news conference, adding that his fellow Republicans are experiencing what he called "growing pains" transitioning from an opposition party to a governing party.
"Doing big things is hard," Mr Ryan added, noting that he got close but failed to muster the 216 votes needed to pass it.
Mr Ryan said he did not know what the next steps would be on healthcare, but called Obamacare so flawed that it would be hard to prop up.
Mr Trump's election opponent Hillary Clinton called it a "victory for all Americans".
"Most of all, it's a victory for anyone who believes affordable healthcare is a human right."
Mr Trump told the Washington Post the healthcare bill would not be coming up again in the near future and that he wanted to see if Democrats who uniformly objected to the Republican plan would come to him to work on healthcare legislation, a Washington Post reporter said on MSNBC.
Without the bill's passage in Congress, Democratic former President Barack Obama's signature domestic policy achievement, the 2010 Affordable Care Act - known as Obamacare - would remain in place despite seven years of Republican promises to dismantle it.
Repealing and replacing Obamacare was a top campaign promise by Mr Trump in the 2016 presidential election, as well as by most Republican candidates, "from dog-catcher on up", as White House spokesman Sean Spicer put it during a briefing on Friday.
The House failure to pass the measure called into question Mr Trump's ability to get other key parts of his agenda, including tax cuts and a boost in infrastructure spending, through a Congress controlled by his own party.