The change comes amid broader push by local governments to restrict the use of resources for immigration enforcement.