Cities like New York, Chicago and Denver have been hardest hit by a migrant crisis that has cost taxpayers billions.