They were never lawful because Congress never appropriated the money.
Section 1402 of Obamacare requires insurance companies to reduce deductibles, copayments, and other similar payments for lower-income consumers and then says that the federal government will reimburse the insurers for their losses. Specifically, insurers will notify the federal government of the amount of their price reductions, and the government will “make periodic and timely payments to the insurer equal to the value of the reductions.”
Little Sisters of the Poor sued the Obama administration and went to the Supreme Court.
The Trump administration has rolled back another Obama-era regulation. No longer will employers be forced to provide contraception coverage under their health plans, freeing them from violating their religious consciences. The Department of Health and Human Services issued the new rules Friday.