Plan to skewer US sanctuary city mayors backfires on Republicans