Libraries retain more than $1.3 billion in federal funding in massive spending bill passed by Congress