It is a federal law that prohibits sex-based discrimination in any education program or activity that is federally funded.
"No person in the United States shall, on the basis of sex, be excluded from participation in, be denied the benefits of, or be subjected to discrimination under any education program or activity receiving Federal financial assistance."