This was an obvious violation of the First Amendment, and it seems the library knew that since it altered its policy even before being brought into court.
MORE: https://www.au.org/blogs/wall-of-separation/access-supplied-court-says-public-library-can-t-block-pagan-websites