The case involved a state law that attempted to ban transgender students from participating in sports consistent with their gender identity.