Mamdani restores library funding after outcry over initial cuts