The court announced it would hear challenges to state laws barring transgender youth from girls’ and women’s sports.