The action comes after months of often violent anti-illegal immigrant demonstrations and an unofficial ultimatum for undocumented foreigners to leave.