After a year under siege, the city’s police department contends with the tactics of federal immigration agents.