WASHINGTON — Justice Department divisions are seeking to roll back policies that offer protections for gay and transgender people, amid a broader push by the Trump administration to reverse such rules.

The Bureau of Prisons will now use an inmate’s biological sex to initially determine where that person will be housed and which bathroom the person will use, according to a policy change to the bureau’s Transgender Offender Manual released Friday.

The revised manual says assigning an inmate to a prison facility based on the person’s identified gender is appropriate “only in rare cases.”

The move comes after several women at a prison in Texas filed a federal lawsuit, saying that sharing quarters with transgender women had endangered them. The Justice Department said over the summer that it would evaluate the case, as well as the bureau’s policies. The change was first reported by BuzzFeed.