For more than 30 years, the law known as Title IX has protected young women from discrimination in athletic programs at schools receiving federal funds.

On Tuesday, the Supreme Court debated whether the law also protects a man — in this case, the coach of a girls’ high school basketball team — who says he was punished for complaining about unequal treatment for his team.