A 6–3 Supreme Court decision, split along ideological lines, upheld bans in 27 states that exclude transgender girls from girls’ and women’s sports teams.

The ruling will impact laws in more than 25 states.

The Supreme Court is upholding state laws barring transgender girls and women from playing on school athletic teams, in another setback for transgender people.