You can give money to whomever you want. Just don’t withhold shelter from the homeless just because they don’t have money.
They should feel free to purchase and house whoever they want with their tax dollars.
As long as we are taking stuff from people, what makes the most sense is to so it equally through taxes, and compensate people fairly by purchasing houses.
Or even better, the government could pay money to build more houses.