It rules that states can ban transgender athletes from competing in women's and girls' sports.