Donald Trump and mayors of sanctuary cities are engaging in a high-stakes game of chicken as the president-elect vows to withhold billions in federal funds from communities that offer refuge to illegal immigrants.