An amendment to remove such protections failed by a vote of 186 to 237 .
An amendment to remove the exemption for the state-sanctioned sites failed on a much closer 237-186 vote .
Some Boston bar managers said they worry that banning smoking will create a hazard as groups of smokers huddle outside on sidewalks and in parking lots to smoke .