A judge moved forward a lawsuit over transgender facilities in a school, but warned students they have no right to “visual bodily privacy.”