Pennsylvania is joining 19 other states in a lawsuit challenging the Trump administration's move to restrict taxpayer-funded family planning clinics from referring women for abortions.

Attorney General Josh Shapiro joined the lawsuit filed Tuesday in an Oregon federal court challenging what critics call the "gag rule."

Shapiro, a Democrat, says it imposes unlawful and unethical restrictions on health care professionals. "Pennsylvania is joining this suit to stop an unacceptable attempt by the Trump Administration to get between women and their doctors," he said in a new release.

The state of California sued separately, as did the American Medical Association and Planned Parenthood.

The Trump administration announced the restrictions in February. The policy would also prohibit federally funded family planning clinics from being housed in the same locations as abortion providers.

Shapiro says the federal Title X program has never funded abortions in Pennsylvania.

Shapiro says dozens of agencies and clinics that receive Title X funds help women get essential health care services such as contraception, preventive care and cancer screenings, and are estimated to prevent thousands of abortions each year in Pennsylvania.

NBC10's Rudy Chinchilla contributed to this story.