City receives $5 million grant to fight homelessness