Ruling backs lawsuit objecting to biological men competing against women in collegiate and public school athletics.