"Although libraries are afforded great discretion for their selection and acquisition decisions, the First Amendment prohibits the removal of books from libraries based on either viewpoint or content discrimination,” US District Judge Robert Pitman said in his order.