WASHINGTON -- The federal government will protect gay and transgender people against sex discrimination in health care, the Biden administration declared Monday, reversing a Trump-era policy that narrowed rights at the intersection of changing social mores and sensitive medical decisions.

It marked the latest step by President Joe Biden to advance the rights of gay and transgender people across society, from military service, to housing, to employment opportunities.

The policy announcement by the Department of Health and Human Services affirms that federal laws forbidding sex discrimination in health care also protect gay and transgender people. The Trump administration had defined 鈥渟ex鈥 to mean gender assigned at birth, thereby excluding transgender people from the law's umbrella of protection.

鈥淔ear of discrimination can lead individuals to forgo care, which can have serious negative health consequences,鈥 said HHS Secretary Xavier Becerra. 鈥淓veryone - including LGBTQ people - should be able to access health care, free from discrimination or interference, period.鈥

Both opponents and supporters of Biden's action said it's likely to lead to litigation.

Speaking for the medical community, the American Medical Association said in a statement the Biden administration 鈥渄id the right thing鈥 by ending 鈥渁 dismal chapter which a federal agency sought to remove civil rights protections.鈥 But some conservatives warned that doctors could be forced to perform gender reassignment procedures against their professional judgement.

Becerra said HHS will now be aligned with a landmark 6-3 Supreme Court decision last year in a workplace discrimination case, which established that federal laws against sex discrimination on the job also protect gay and transgender people.

In a tweet at the time, then-President Donald Trump called the decision 鈥渉orrible & politically charged.鈥 Undeterred by the ruling, his administration proceeded to try to narrow protections against discrimination in health care. But Biden early on in his term directed government agencies to apply the Supreme Court's reasoning to areas under their jurisdiction.

Monday's action means that the HHS Office for Civil Rights will again investigate complaints of sex discrimination on the basis of sexual orientation and gender identity. Hospitals, clinics and other medical providers can face denial of Medicare and Medicaid payments for violations of the law.

Since the Trump transgender rule had been blocked by a federal judge, the Biden administration action essentially restores a policy established during the Obama years. The Affordable Care Act prohibited sex discrimination in health care but did not use the term 鈥済ender identity.鈥 The Obama administration interpreted the law as shielding gay and transgender people as well.

Conservative lawyer Roger Severino, who as a former HHS official oversaw the drafting of the Trump rules, said the Biden administration cut corners in issuing its new policy.

鈥淭his is inflaming the culture wars, especially when you are trying to circumvent the process,鈥 said Severino, now at the Ethics and Public Policy Center think-tank . Partly because of conflicting lower court rulings on the Trump and Obama policies, Becerra should have undertaken a formal rule-making, which can take months. 鈥淚 expect lawsuits,鈥 Severino added.

But civil rights advocates said the Supreme Court's ruling on transgender protections essentially wiped the slate clean for Biden. 鈥淭he Supreme Court has already laid out the reasoning that applies under all sex discrimination laws,鈥 said Omar Gonzalez-Pagan, a lawyer for Lambda Legal. 鈥淭hey did so in an employment case but their reasoning applies equally in health care, in education, and in housing.鈥

In recent years the understanding of sex has broadened to acknowledge a person's inner sense of being male, female, neither or a combination.

Behind the dispute over rights for transgender people is a medically recognized condition called 鈥済ender dysphoria鈥 - discomfort or distress caused by a discrepancy between the gender that a person identifies as and the gender assigned at birth. Consequences can include severe depression. Treatment can range from gender confirmation surgery and hormones to people changing their outward appearance by adopting a different hairstyle or clothing.

Under the Obama-era rule, a hospital could be required to perform gender-transition procedures such as hysterectomies if the facility provided that kind of treatment for other medical conditions.

LGBTQ groups say explicit protections are needed for people seeking gender transition treatment, and even for transgender people who need care for illnesses such as diabetes or heart problems.

But Tony Perkins, president of the religious conservative Family Research Council, called sex 鈥渁n objective biological reality鈥 and said the Biden administration is promulgating 鈥渁 nonsensical definition鈥 of discrimination. 鈥淲hile this decision will advance America's cultural psychosis, it will potentially put the physical well-being of individuals at grave risk,鈥 Perkins said in a statement.

More than 1.5 million Americans identify as transgender, according to the Williams Institute, a think-tank focusing on LGBT policy at the UCLA School of Law. A bigger number - 4.5% of the population- identify as lesbian, gay, bisexual or transgender, according to Gallup.

HHS is a traditional battleground for conflicts over social issues. During the Trump administration the department bent to the will of conservatives. Other Trump policies applauded by the right restricted abortion referrals and broadened employers' ability to opt out of providing birth control to women workers covered by their health plans. Under Biden, the policy pendulum has been swinging back in the opposite direction.

One of Biden's first steps after taking office was a Jan. 20 executive order on combating discrimination on the basis of gender identity or sexual orientation.

Biden quickly followed that up with another order reversing a Trump-era Pentagon policy that largely barred transgender individuals from serving in the military.

And earlier this spring, the Department of Housing and Urban Development withdrew a Trump policy that would have allowed taxpayer-funded homeless shelters to deny access to transgender people.

At HHS, Biden's term has seen the Senate confirmation of Dr. Rachel Levine to be assistant secretary for health, a senior position that involves oversight of public health initiatives, HIV/AIDS, women's health and minority health, as well as other areas including research protections. Levine, formerly Pennsylvania's top health official, is the first openly transgender person to be confirmed by the Senate.