The U.S. Education Department said Wednesday that the federal law that bans sex-based discrimination in education extends to gay and transgender students, the latest move in a broad effort by the Biden administration to roll back Trump-era restrictions on transgender students’ rights.