Judge ruling on transgender ban