Prominent Republicans including former President Donald Trump and US Senate candidate Kari Lake had pressured Arizona’s GOP to repeal the near-total ban, saying it went too far. The 1864 ban was unpopular with a majority of state residents; an October poll found that 59% of Arizona’s registered voters said abortion should be mostly or always legal, while just 34% said it should be mostly or always illegal.

Democrats had hoped to seize on outrage over the near-total ban and are still planning a ballot measure in Arizona this November that would enshrine the right to abortion in the state’s constitution. Having such a measure on the ballot could sway votes beyond the presidential election, such as Lake’s tight race against Democrat Rep. Ruben Gallego for the US Senate seat.

Despite the repeal, Arizona residents will spend most of their summer subject to the ban unless the state attorney general successfully intervenes, which she has said she plans to do. That’s because of a procedural quirk: Arizona bills typically take effect 90 days after the legislative session ends.