More importantly, they are barred from enforcing them without authority from the Federal Government to do so. LEO’s have no idea how immigration law works (much like every nativist asshole). Immigration law is not like criminal law in many fundamental ways.
Sanctuary cities exist precisely because they are perfectly legal. There is no obligation for state or local government to cooperate with ICE officials on warrantless information requests.