In this Dec. 15, 2017 photo, the HealthCare.gov website is photographed in Washington. A new tally by The Associated Press finds that nearly 11.8 million Americans have signed up for coverage this year under former President Barack Obama’s health care law. That’s only about 3 percent less than last year, remarkably stable despite President Donald Trump’s repeated efforts to repeal or undercut the program. The Affordable Care Act offers subsidized private health insurance to people who don’t have coverage on the job. (AP Photo/Jon Elswick
In this Dec. 15, 2017 photo, the HealthCare.gov website is photographed in Washington. A new tally by The Associated Press finds that nearly 11.8 million Americans have signed up for coverage this year under former President Barack Obama’s health care law. That’s only about 3 percent less than last year, remarkably stable despite President Donald Trump’s repeated efforts to repeal or undercut the program. The Affordable Care Act offers subsidized private health insurance to people who don’t have coverage on the job. (AP Photo/Jon Elswick Credit: Jon Elswick

Washington — Call it the political equivalent of a death-defying escape: former President Barack Obama’s health care law pulled in nearly 11.8 million customers for 2018, despite the Republican campaign to erase it from the books.

An Associated Press count found that nationwide enrollment was about 3 percent lower than last year. California, with more than 1.5 million sign-ups, was the last state to report, announcing its numbers on Wednesday.

Sixteen states increased their enrollment from last year, according to AP’s analysis. Six of those were carried by President Donald Trump in 2016, while 10 went for Democrat Hillary Clinton.

However, of the total number of people signed up this year about 6 in 10 live in states that went for Trump, according to the AP’s analysis.

“If you had asked me a year ago whether enrollment for 2018 would be almost equal to 2017, I would have laughed at you,” said Larry Levitt, who follows the health law for the nonpartisan Kaiser Family Foundation.

Total enrollment remained remarkably stable despite Trump’s disdain for “Obamacare,” and multiple attempts by the Republican-led Congress to repeal it. The Trump administration also cut the sign-up window in half, slashed the ad budget, and suddenly stopped a major subsidy to insurers, which triggered a jump in premiums.

“The Affordable Care Act and the landmark protections and affordable coverage it provides are here to stay,” House Democratic Leader Nancy Pelosi said in a statement.

“These results show that people recognize how important coverage is for their health and financial stability,” said Kristine Grow of America’s Health Insurance Plans, the industry lobby.

The Trump administration had no immediate reaction. Newly confirmed Health and Human Services Secretary Alex Azar is a critic of the health law but has avoided directly antagonizing Democrats over it. The White House line remains that “Obamacare” should be repealed and replaced, but Republicans in Congress don’t have the votes.

Still, nearly eight years after the ACA passed, the debate isn’t likely to go away. The outlook for next year is dicey. Starting in 2019, Congress has repealed the law’s unpopular requirement that most people carry health insurance or risk fines from the IRS.