State and local officials will also be prohibited from formally cooperating with Immigrations and Customs Enforcement under the agreement.