President Donald Trump announced Friday that the House of Representatives would postpone a planned vote on the American Health Care Act, the Republican bill to repeal Obamacare.

The news was first reported by Robert Costa of The Washington Post, who spoke to the president directly.

The announcement came while a debate over the bill was still playing out in the House chamber, with GOP leaders realizing they lacked the votes to prevail. 

It was not immediately clear when Congress plans to resume consideration of repeal ― or whether it will do so at all.

The postponement is a devastating defeat for Trump and Ryan, and a major setback in the crusade against Obamacare that has defined Republican Party politics for seven years.

The announcement capped a week of chaotic activity at both ends of Pennsylvania Avenue, as Trump, Ryan and their lieutenants tried desperately to round up votes for the measure they introduced less than three weeks ago ― which they were attempting to move through the legislative process at breakneck speed.

Less than 24 hours before, Trump had issued an ultimatum to the House, demanding a vote on what both he and Republican leaders had identified as a top legislative priority ― and threatening to move on to other legislative items if they refused.  

Trump's demand was an audacious act of political brinkmanship, designed to rattle and win over dissident Republican lawmakers who, for various reasons, were objecting to the bill.

But the gambit failed, and it failed spectacularly. Now, instead of celebrating a victory over Obamacare, Trump and Republican leaders must figure out whether and how to press ahead with repeal ― and where that fits into the rest of their governing agenda.

As for the current health care law, on which some 20 million people depend for insurance, its odds of survival seem better than at any time since Trump's election, when its repeal seemed nearly inevitable.

In theory, nothing prevents Trump or House leaders from continuing to pursue passage of this House bill, or taking up another bill to repeal the health care law ― perhaps by starting with the Senate, which has yet to debate the issue formally. But Friday's postponement, and the contentious negotiations that led to it, have demonstrated how difficult that endeavor would be.

This is a developing story and will be updated.