This appears to be a primary result of the federal Executive department not enforcing the laws of the land, and not protecting the citizens and legal residents.  It is a normal response that he, in his official duty, would  respond to keep law and order.  
It also makes me wonder why this judge did not issue an writ to the bush or Obama administrations ordering them to uphold the laws so the elevated crime issues the sheriff was dealing with (as a result of the illegal aliens) would not be there in the first place.