On that note, if the university library in question is a Federal Depository Library (and in my experience must are), they need to make at least those materials available to the public.
Whatever article/amendment of the US Constitution proscribes restriction to local parks on the basis of residency would ostensibly also proscribe any public government institution from discriminating on the basis of residency.