In a decision that split along ideological lines, the Justices ruled that state schools can restrict women’s and girls’ sports for biological females under Title IX.

The three liberal justice on the Supreme Court dissented as the judiciary upheld state bans on transgender athletes.

The ruling will impact laws in more than 25 states.