Actually, no. A sheriff has a special place in law as the locally ELECTED LEO. There are instances in which county sheriffs have thrown out Federal bureaucrats and the cases have stood. You'd best be damned thankful for that too.
What's funny about this situation is that Baca is citing one Federal law on drugs, while he systematically ignores another on illegal immigration.
Wrong.
They still acted under State Law. That is the genesis of their authority.