One problem facing the social system is that people in need are not seeking all the support they need. This is the reason why assigned social worker who sees the whole picture is important.
But for the rest it's good that a country is doing a large effort. Most of them need a few to get back on their feet: shelter, hygiene and safety.
And yeah the only 100% end to homelessness in a society is involuntary institutionalization. Some people may decide they want to be homeless or can't organize themselves sufficiently to wind up at their home or even a hotel if money was no object. The latter is more justifiable but it is dicey for society to set thresholds. Out of sight out of mind is ripe for abuse even without bad intentions. Just bad assumptions and bureaucratic snafus can do plenty of harm.
But it's not gone. Homelessness is not really possible to solve definitely.