Lawmakers in the House approved the measure in a 382-30 vote and the Senate shortly thereafter approved it by voice vote.
President Trump was demanding funding for a wall on the U.S. -Mexico border, and with Democrats united in opposition, the prospect of a government shutdown loomed. He said the vote would not occur Friday or Saturday.
While the House GOP conference attempts to wrangle votes, the White House has also sought to apply pressure ahead of the 100-day mark in President Donald Trump's administration.
Many House Republican supporters of the measure insisted Friday that they are just a few votes shy - and that a vote could come, for real, as early as next week. They spent the day lobbying undecided lawmakers and those who are against the new version. The GOP can only afford to lose 22 votes from its side and still guarantee passage. He abruptly canceled a vote on a health care overhaul at that time because of opposition from moderates and conservatives alike.
House and Senate appropriators were expected to work through this weekend, but there were no guarantees they would be able to find common ground that would prevent parts of the government from shutting down on May 6. He noted that he had spoken earlier this year about a 200-day legislative plan because of the complexity of revamping the nation's health system, its tax code and border security. Vice President Pence had to break a tie vote in the Senate to send the legislation to Trump's desk.
"We are seven months into the fiscal year", said Representative Nita Lowey of NY, the top Democrat on the House Appropriations Committee. They could also be exempted from Mr Obama's mandate that insurers cover a list of services like hospitalisation and substance abuse treatment and from its prohibition against charging older customers more than triple their rates for younger ones. No poison pill riders.
"We are seven months into the fiscal year", added Representative Nita Lowey of NY, the top Democrat on the House Appropriations Committee.
"As soon as we have the votes, we'll vote on it", House Majority Leader Kevin McCarthy, R-Calif., told reporters as he left a Republican leadership meeting Thursday night.
Until five months ago, Upton, a Michigan Republican, chaired the Energy and Commerce Committee, which has jurisdiction over much of health care policy. Yet it's proving an uphill fight for Republicans to make good on seven years' worth of promises to repeal and replace Obama's health care law. Patrick Leahy, D-Vt., said on the Senate floor before the vote. Patrick Meehan, who'd been publicly undeclared, and Ryan Costello, who'd said he'd have opposed the original bill. Meehan said he was called recently by Pence and lobbied "by everyone in leadership".
But the fate of the legislation appeared to be in doubt Thursday as leaders raced to get the support of moderate Republican lawmakers. The doctors' group said letting insurers boost premiums on people with pre-existing conditions "will likely lead to patients losing their coverage". But they voted for it anyway, citing expectations that disagreements would be resolved.
Several Republican senators have expressed serious doubts about the AHCA.