The ordinance faced weeks of steady opposition from Councilmember Eric Guerra and public health organizations.