Legal action was filed challenging Gallatin County’s controversial cooperation agreement with federal immigration enforcement from 2020.