State officials warned the funding shift could push tens of thousands of formerly homeless Californians back to the street.