Democratic mayors face withering attacks on 'sanctuary city' policies