The confrontation highlights deepening divisions between local government leaders and federal authorities over the enforcement of immigration law.