As rising temperatures and growth threaten butterfly populations, urban gardens have become biodiversity “hot spots,” new research says.