The Department of Homeland Security 's inspector general has affirmed what sheriffs , police chiefs , civil-rights lawyers and immigrant advocates have said for years : Outsourcing immigration enforcement to an ill-trained and poorly supervised assortment of state and local law enforcement agencies creates a lot of problems .