The reversal means that the nation’s public schools no longer must allow transgender students to use the bathrooms and locker rooms that align with their gender identity. The move drew immediate condemnation from gay and transgender rights advocates, who accused President Trump of violating past promises to support protections.