WASHINGTON — Despite pressure from the White House, House GOP leaders determined Thursday night that they don’t have the votes to pass a rewrite of the Affordable Care Act and will not seek to put their proposal on the floor on Friday.

A late push to act on health care had threatened the bipartisan deal to keep the government open for one week while lawmakers crafted a longer-term spending deal. Now, lawmakers are likely to approve the spending bill when it comes to the floor Friday and keep the government open past midnight.

The failure of GOP leaders to summon enough support for a renewed health-care push is evidence of just how difficult it is to overhaul Obamacare, despite seven years of GOP promises to repeal and replace the 2010 law. Conservatives and moderates have repeatedly clashed over what legislation should look like, most sharply over bringing down insurance premiums in exchange for sharply limiting what kind of coverage is required to be offered.

Up to 15 or so House Republicans have publicly said they would not support the latest draft of the measure, leaving House Speaker Paul Ryan, R-Wis., and the White House an incredibly narrow path to a simple majority. If all 238 Republicans are present for a vote, Ryan can lose only 22 Republicans and still pass the bill with the barest of majorities.

GOP leaders’ failure to secure a health care deal will help ensure the government stays open past midnight on Friday — at least for one week. Lawmakers agreed to the stopgap measure so they could finish negotiating a broader deal to fund the government through September.

The Senate stands ready to approve a one-week spending measure, but only once the broader spending agreement is complete. Senate Minority Leader Chuck Schumer, D-N.Y., on Thursday blocked a measure that Republican leaders hoped would allow the Senate to approve the stopgap budget without a formal vote.

Schumer has indicated that he will drop his objections once he is assured a long-term budget agreement is in place, according to Senate Democratic aides.

Senators in both parties told reporters they were instructed not to leave Washington on Thursday night.

“Instead of rushing through health care,” Schumer told reporters, “they first ought to get the government funded for a full year — plain and simple.”

The frenzy of activity behind closed doors Thursday was largely driven by White House officials who were eager to see a vote on the measure ahead of the 100-day mark for President Donald Trump while congressional leaders in both parties were more focused this week on a spending agreement, according to people involved in the discussions.

The White House tried to jump-start talks on health care after House Republicans failed to pass a previous attempt at an ACA rewrite at the end of March. This week, the hard-line House Freedom Caucus announced it was behind a tweaked proposal it had crafted with the White House and a leading moderate lawmaker.

But Democrats oppose any effort to change the ACA and threatened to pull their support from the short-term bill if Republicans moved forward with that effort.

“If Republicans pursue this partisan path of forcing Americans to pay more for less and destabilizing our county’s health-care system,” said House Minority Whip Steny Hoyer, D-Md., then “Republicans should be prepared to (keep the government open) on their own.”

House Minority Leader Nancy Pelosi, D-Calif., told a meeting of Democratic whips on Thursday that she had called Ryan and told him there were two conditions for Democratic support of the short-term funding bill, according to aides in the room. Democrats would only sign off on the emergency spending measure to allow lawmakers time to pass the longer-term spending deal, and they would not back the measure if doing so would allow Ryan time to set up a vote on a GOP rewrite of the ACA.

Democrats fiercely oppose replacing the law.

The sudden turmoil is yet another sign of Congress’ inability to meet deadlines for its most basic function: keeping the government’s lights on. And it presages fights between Congress, the White House and both parties over spending priorities, despite the one-party rule that gave some observers hope that the gridlock would cease.

Trump waded into the spending wars Thursday morning, indicating it was Democrats who bore the blame for shutdown threats because the party was focused on “bailing out insurance companies.”

But it was Republicans who this week jettisoned Trump’s top priority — money for his proposed wall along the U.S.-Mexico border — because of widespread agreement that it should not be tied to the spending deal. Trump has also agreed to pay the cost-sharing subsidies for low-income people who get their insurance under the ACA — something he threatened to withhold if he did not get money for the wall.

The standoff is the first in what could be several budget battles between Congress and the White House this year.