Some states are stockpiling abortion pills after a ruling last week by a federal judge threw into uncertainty the decadeslong government approval of the key abortion drug mifepristone.

A Texas judge on Friday ordered the FDA to halt its approval of mifepristone. But minutes later, a federal judge in Washington ordered the agency not to make any changes that would restrict mifepristone access in states included in a separate lawsuit.

The Justice Department appealed the Texas ruling on Monday, and for the time being, mifepristone remains available.

But with the future of the drug’s FDA approval thrown into question, states including New York, Massachusetts, California and Washington are rushing to stockpile abortion pills.

THE RULINGS:Dueling federal rulings plunge future of abortion pill into legal uncertainty

LAST MONTH’S HEARING:Texas judge hears arguments in lawsuit that could force major abortion pill off market

Massachusetts plans to buy 15,000 mifepristone doses

Massachusetts Gov. Maura Healey announced Monday a plan to buy 15,000 doses of mifepristone in case the drug is banned nationwide.

“We are going to make sure we have enough mifepristone to cover women in the state, for as long as they need,” she said at a news conference at the Massachusetts statehouse that included Democratic lawmakers like Sen. Elizabeth Warren.

The doses are expected to be enough to last the state more than a year and should arrive this week, Healey said. The administration is also dedicating $1 million to help abortion providers pay for additional doses.