Mayor Craig Greenberg said he made the decision after speaking with local immigrant leaders, who expressed concern about the risks of remaining on the federal sanctuary city list.