This is pure idiocy.
They outlawed a positive behaviour (feeding the homeless) to address a separate negative behaviour (the safety and sanitary issues).
Laws already exist to address the behaviours that directly result in safety and sanitation issues, they should be enforced. What should not happen is to criminalize a positive behaviour.
This is legislative fencing. You build fences that restrict neutral or positive behaviors in an effort to reduce the occurence of negative behaviours.
God said don't eat the fruit. When asked by the serpent, Eve said God told her not to eat the fruit, or even touch it. Eve fenced what God said.
"They outlawed a positive behaviour (feeding the homeless)"
Whether or not feeding the homeless is a positive thing is very much open for debate. I'm probably not as up on scripture as you but I would find it difficult to believe that God would have us enabling the wicked. Those who con and take advantage of their fellow man's charitable nature are wicked.
Paraphrasing one of my favorite proverbs: Give a man a fish and you have fed him for a day. Teach him to fish and you have fed him for a lifetime.
Feeding these people just ensures their life will go on as it always has and never get any better. I certainly respect your good heart but I think your charity is misplaced with respect to this issue. Just my opinion.