In October, the plaintiff, a high-school junior identified as Joel Doe, was changing into gym clothes in the boys’ locker room before the mandatory PE class when he saw a student, wearing shorts and a bra, according to the lawsuit.