and the long term homeless can't even afford to go to a shelter every night as they're not free
I used to live in a university town where you could buy a voucher from the student union and local churches that entitled the bearer to a meal at a soup kitchen and a pricier voucher that would get a bed at a homeless shelter and breakfast in the morning. This alleviated the concern that a cash gift would spent on drugs or alcohol whilst allowing the local people to help individuals into the night shelters.
There was one guy who was non-verbal and should have been in residential adult care, not on the streets. He would get aggressive if you didn't give him anything, which was counter-productive for him and intimidating for everyone else. This was 20 years ago, he's probably dead by now. Helping someone like him into accommodation will be hard if not impossible, but outlawing tents won't make it easier.