The Supreme Court ruled on Tuesday that states can ban transgender women and girls from women's and girls’ sports teams.

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.