City officials erected barricades, mapped out street closures and coordinated with federal agencies as protesters planned anti-Trump marches and demonstrations near the convention venue.