Threat of homelessness looming over millions