I don’t believe “sanctuary cities” are illegal and specific legislation needs to prohibit it at the federal level.
These mayors are preventing ICE from arresting the illegals.