Protesters held demonstrations and city leaders spoke against the prospect of a surge of federal agents.