Its hair splitting. Libraries are controlled by a variety of institutions, sometimes non-profits or municipalities. The 1st amendment prevents the federal government from banning protected speech, but private entities can do what they like. (like moderators on a forum).