The Boston City Council voted unanimously on Wednesday to pass the ban, becoming the second large U.S. city—and the first on the East Coast—to do so.