The point your missing is that schools have a right to teach whatever they want. A judge should not be determining what a school can and cannot teach.
Or would you prefer a judge make the determination that a school can't teach about Pearl Harbor, or the rape of Nanking, or let's say the Holocaust.