(CNN) A coalition of major hospital groups filed a lawsuit Wednesday to stop the Trump administration from requiring them to disclose the prices they privately negotiate with insurers.

The move comes less than three weeks after the administration issued a final price transparency rule that officials say will help reduce health care costs, one of President Donald Trump's main promises as he heads into the 2020 campaign.

The hospital groups contend that the Centers for Medicare and Medicaid Services overstepped its authority in compelling hospitals to publicize these rates. Plus, they argue, the provision violates the First Amendment by mandating they reveal the rates "in a manner that will confuse patients and unduly burden hospitals."

"CMS' final rule fails to offer patients easy-to-understand information regarding their out-of-pocket obligations for care -- so we feel obligated to contest the regulation," said Chip Kahn, chief executive of the Federation of American Hospitals, which represents investor-owned hospitals. "We contend the agency exceeded its authority and should go back to the drawing board."

The federation filed the suit along with the American Hospital Association, the Association of American Medical Colleges and the Children's Hospital Association, as well as three hospitals, in the US District Court for the District of Columbia.

Read More