A federal judge on Thursday blocked until at least next month hotly debated Texas rules mandating burial or cremation of fetal remains that were set to go into effect within days.



The ruling by Austin-based U.S. District Judge Sam Sparks begins the latest legal battle for a state whose tough anti-abortion laws were largely struck down by the U.S. Supreme Court this summer.



The Center for Reproductive Rights and other national advocacy groups sued to prevent Texas from requiring hospitals and clinics to bury or cremate fetal remains from abortions or miscarriages rather than disposing of them in a sanitary landfill, as they often currently do with such remains and other biological medical waste.



The rules had been set to take effect Monday. The lawsuit argues that the rules serve no medical purpose and are meant to shame women who seek abortions and make it harder for doctors to provide them.



Sparks scheduled two days of testimony for early next month, then said he expected to rule by Jan. 6 on whether or not the rules can be allowed to stand going forward.



Earlier legal challenges blocked similar measures in Louisiana and in Indiana, where they were signed into law by Gov. Mike Pence, now Donald Trump's vice president-elect.



Texas' proposed rules brought more than 35,000 public comments. The state health department wrote that it "believes the methods allowed by the rules will protect the public by preventing the spread of disease while also preserving the dignity of the unborn in a manner consistent with Texas laws."



The new rules were proposed to the health commission at the behest of Republican Gov. Greg Abbott in July, just days after the U.S. Supreme Court struck down anti-abortion laws that would have left Texas with 10 abortion clinics, down from more than 40 in 2012.



They require fetal remains, regardless of the state of gestation, to be treated like those of a deceased person by having them buried or cremated. Cremated remains would still have to be buried or scattered.



Republican state lawmakers also have pre-filed bills that would codify similar rules into Texas law. The Texas Legislature convenes Jan. 10.



Remains are currently most often disposed of in sanitary landfills, and that cost is included in the price of getting an abortion or otherwise undergoing treatment for a terminated pregnancy.



Critics say cremation, and especially burial, would cost more and force women to have to cover the additional expenses, while funeral home operators also have worried about the added costs interment and cremation. The Texas Catholic Conference, however, has announced that it is readying plans to allow free burial for fetal remains at Catholic cemeteries.