Budget cuts to close most libraries on Thursdays