The Supreme Court on Tuesday seemed likely to uphold state laws barring transgender girls and women from playing on school athletic teams.