The stimulus helped forestall drastic cuts at public schools, but many are now approaching what officials call a “funding cliff.”