The lawsuit accuses city, county, and state authorities of ‘minimally enforcing—and oftentimes affirmatively thwarting’ federal immigration law.