"The selection of public-school-library books is government speech and therefore not subject to the First Amendment," it said in a Friday filing.