Some libraries are now facing an existential threat: They could lose their public funding over books deemed inappropriate for young readers.