A group of California female inmates can’t proceed with a lawsuit to undo a state law requiring officials to transfer people who identify as transgender, nonbinary, or intersex from men’s prisons to women’s prisons, a federal judge said.

The inmates lacked standing to challenge the provision because they didn’t show the law actually forced officials to transfer inmates without considering whether they posed a danger to inmates in the transfer prison or explain why ruling the law unconstitutional and blocking its future use likely would prevent harm, the US District Court for the Eastern District of California said Monday.

The …