An appeals court has struck down a federal law that requires workplaces to provide accommodations for pregnant women, saying Congress violated the U.S. Constitution when it passed the law in 2022. The New Orleans-based 5th Circuit Court of Appeals issued its 9-8 decision on Friday.

Advocates of the Pregnant Workers Fairness Act said the decision invalidates the law in Texas, Louisiana and Mississippi, which are covered by the 5th Circuit, and could imperil the law elsewhere.

The appeals court said the act was unconstitutional because a majority of U.S. House members weren't physically present when it was approved as part of a spending package in December 2022. At the time, the House was operating under COVID-era rules that allowed members to vote by proxy.