The Supreme Court is weighing whether states can ban biological males from competing in girls’ sports in a case that could set nationwide precedent.