Supreme Court Justice William Brennan said in 1982 that school boards could not determine the content of school libraries based on their own personal political ideology, and this should hold for other parts of the government. Students have limited First Amendment rights within the school context, and the special characteristics of the school library is the principal locus of student freedom 'to inquire, to study and to evaluate, to gain new maturity and understanding.'
Public school librarians are well trained to recognize material that is or is not appropriate for the student body, and the government should not try to take over that role. Students should be given the freedom to access or not access materials of their choosing, already having undergone review by school librarians for appropriateness.
If parents want to restrict material from their child, there are ways to do that without resorting to this overreach.