SACRAMENTO (AP) — California prison officials must let transgender inmates have more female-oriented commissary items including nightgowns, robes, sandals, scarves and necklaces as part of a settlement that will make California the first state to pay for an inmate’s sex reassignment surgery, a federal judge ruled Thursday.

Aside from providing the surgery for 56-year-old Shiloh Quine, the state agreed in August to provide some items to transgender inmates such as Quine who are housed in men’s prisons.

The proposed policy doesn’t go far enough, ruled U.S. Magistrate Judge Nandor Vadas. He said transgender inmates housed in men’s prisons should have many of the same items as are provided to female inmates.

Shiloh and her attorneys argued the state was prohibiting some items “based solely upon gender norms” rather than security concerns. They objected to continuing to bar male inmates from having clothing designed specifically for women.

Vadas agreed, saying the California Department of Corrections and Rehabilitation should give transgender inmates or those having symptoms of gender dysphoria in men’s prisons at least some access to chains and necklaces, pajamas and nightgowns, robes, sandals, scarves, T-shirts and walking shoes.

They should have supervised access to pumice stones, emery boards and curling irons, he ruled.

But he drew the line at bracelets, earrings, hair brushes and hair clips, saying those may pose significant safety and security risks.

“Transgender women like Shiloh shouldn’t be denied items that every other woman in CDCR custody has access to,” Ilona Turner, legal director at the Oakland-based Transgender Law Center, said in a statement. “We are pleased that the court recognizes the importance of having access to clothing and personal items that reflect a person’s gender, and that denying items because someone is transgender is discrimination.”

Quine is serving a life sentence for murder, kidnapping and robbery at Mule Creek State Prison. The men’s prison, which is in Ione 50 miles southeast of Sacramento, houses about 3,200 inmates. She is set for surgery in December.

Kent Scheidegger, legal director at the Criminal Justice Legal Foundation, which supports crime victims, called Vadas’ ruling “ridiculous.”

“Civil rights laws should not create a right to such minor matters. The civil rights of prisoners are to not be treated cruelly, and getting down to such details goes far beyond what a reasonable interpretation of civil rights laws would provide,” he said.

Moreover, the feminine items may cause problems in men’s prisons, he said.

“Sexual assault does happen in prison, it’s a major problem and certainly people who have a feminine appearance are more likely to be targets,” Scheidegger said.

Corrections spokeswoman Terry Thornton declined comment, citing the ongoing litigation.

(© Copyright 2016 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)