The Trump administration’s aggressive immigration enforcement and National Guard deployments have ignited searing conflicts between the federal government and local officials in Democratic-run cities.