Mandatory shelter seems a lot like… jail, prison, or involuntary institutionalization.
Perhaps call such a proposal as it is, making it explicitly illegal to be homeless, punishable by imprisonment. But then that would increase jail, prison (or other institutionalization) costs to be borne by all taxpayers.