The American Civil Liberties Union and the Massachusetts attorney general said they will sue the Trump administration over its decision Friday to roll back Obamacare's birth control mandate.

The lawsuit decisions come as other advocacy groups and attorneys general from blue states said they are considering taking the administration to court.

An interim rule released Friday would scale back the contraception requirement in Obamacare. If finalized, it would exempt employers from providing insurance coverage to employees that includes contraception coverage if it conflicts with the employer's religious or moral beliefs.

The Trump administration's rollback goes much further than exemptions for churches and religious nonprofits, although it does not affect publicly traded companies.

The ACLU argues in its lawsuit that the interim rule violates the Constitution by "authorizing and promoting religiously motivated and other discrimination against women seeking reproductive care."

The Center for Reproductive Rights said it is "prepared to fight these discriminatory and unconstitutional restrictions in court."

In announcing her decision to sue the administration, Democratic Massachusetts Attorney General Maura Healey called the rollback "a direct attack on women's health and the right to access affordable and reliable contraception."

Healey elaborted in a call with reporters that the rule was unconstitutional.

"This rule is unconstitutional because it allows employers, businesses, companies to impose their religious beliefs on their employees and that is a violation of the Establishment Clause," she said, referring to the First Amendment right to freedom of religion.

She added that the rollback also violates the Administrative Procedures Act that sets up how federal rules need to be approved.

"They are taking away a right without any opportunity for public comment and without careful review of the issue as required by the APA," Healey said.

Healey said the state will try to get sa temporary restraining order and preliminary injunction from a federal court.

The Democratic attorneys general from Virginia and Oregon said they also are looking into legal options to fight the move.

"We have been anticipating this awful idea and have already begun working with other states to evaluate any legal response that may be appropriate to protect our citizens' private decisions and access to affordable healthcare," Virginia Attorney General Mark Herring said.

HHS responded that the contraception mandate ensures religious liberty.

"No American should be forced to violate his or her own conscience in order to abide by the laws and regulations governing our healthcare system," said HHS press secretary Caitlin Oakley. "Today's actions affirm the Trump administration's commitment to upholding the freedoms afforded all Americans under our Constitution."