We're moving! Get our latest gender and identity coverage on washingtonpost.com.

After years of struggling with her gender identity, attempting suicide and trying to castrate herself twice in an all-male Idaho prison, a court ruled that Adree Edmo should be provided a gender confirmation surgery. After that, she will serve the remainder of her sentence at a women’s correctional facility.

Edmo is now one step closer to becoming the first inmate to receive the surgery in Idaho as the result of a court order.

The decision Friday by the U.S. Court of Appeals for the 9th Circuit is the first time that an appeals court has ordered the state to pay for such a procedure. Denying Edmo her surgery was in violation of her rights under the Eighth Amendment, the court ruled, which prohibits “cruel and unusual punishments.” Five other inmates in the state have requested the procedure in 2019, CBS News reported.

“The court’s decision is extremely disappointing,” Idaho Gov. Brad Little (R) said in a statement.

He said he will appeal the case. “The hard-working taxpayers of Idaho should not be forced to pay for a convicted sex offender’s gender reassignment surgery when it is contrary to the medical opinion of the treating physician and multiple mental health professionals.”

Edmo pleaded guilty in 2012 to sexual abuse of a 15-year-old boy at a house party. She was 21 at the time of the crime, according to court documents. She will complete her sentence by July 2021, according to the Idaho Department of Correction.

Lori Rifkin, one of Edmo’s attorneys, said the governor’s statement hints at transphobic prejudice.

“The contract Idaho has with Corizon already covers necessary medical care,” Rifkin said, referring to the state’s private prison health-care provider, Corizon Health, which has a $46-million-a-year contract. “This is a false statement by the governor that this would cost the taxpayers any money.”

Marissa Morrison Hyer, press secretary for the governor, pointed out that the Corizon Health contract is funded by taxpayer dollars.

“The contract also includes a provision under which Corizon can seek costs associated with treatments or procedures not reasonably foreseen at the time the contract was awarded in 2013,” she said in a statement.

It was not clear whether Corizon planned to request taxpayer dollars for the procedure. But according to KVAL-TV in Boise, the state has spent more than $300,000 to appeal the case in court.

Edmo’s surgery is necessary, Rifkin said, and delaying it would cause more suffering and risk to her life. She said she’s also concerned about the governor’s reference to Edmo’s conviction when speaking about her rights to a gender confirmation surgery.

LGBTQ people as a whole have long been wrongfully accused with broad strokes of harming or being an inherent danger to children. In recent months, several people posed as gay men on Twitter in an attempt to associate homosexuality with pedophilia. In 2018, a fake LGBTQ account tried to promote pedophilia at an Oregon Pride parade.

Inside prison walls, perceived pedophiles are at high risk for harm. In 2015, the Associated Press reported that male sex offenders accounted for nearly 30 percent of all homicides in California prisons.

But Edmo is entitled to protections under the Constitution, advocates say, no matter her crimes. Kimberly Mckenzie, outreach director for the Sylvia Rivera Law Project, said the court’s decision isn’t a victory but a stance for basic human rights.

“I think the conversation should not be about who is the face of this, but that trans people deserve access to affirming health care,” she said.

Rifkin, Edmo’s attorney, said her case boils down to the Constitution and what it says about how prisoners should be treated.

“Everyone in prison is there because they’ve been convicted of a crime,” she said. “There is no asterisk in the Constitution saying that because of a particular crime, they are excluded from constitutional protections.”

Other transgender inmates across the country have received gender confirmation surgeries that have included forms of public funding, but Edmo’s case could set a precedent for the care given to transgender inmates, said Sarah Warbelow, the legal director for the Human Rights Campaign.

“I hope that this decision will encourage lawmakers, whether it’s the Trump administration or state legislatures, to understand that being transgender is a part of the human condition,” Warbelow said.

When I came out as trans, I knew I needed a new name. But would I ever find one that felt right?

Your name needs to be something you can recognize and respond to — something you can feel

Harry Potter is an escape for many trans and queer people. J.K. Rowling’s anti-trans comments are shattering.

Harry Potter is an outcast who eventually finds a community and love

‘Am I going to be next?’: Dallas activists react to the latest attack in a string of violence against transgender women of color

After two high-profile murders of black trans women in Dallas this summer, another transgender woman was shot last week