The long read: In 2024, libraries are unofficial creches, homeless shelters, language schools and asylum support providers – filling the gaps left by a state that has reneged on its responsibilities