San Francisco will become the first major city in the United States to ban the sale of e-cigarettes as officials look to control the rapid uptick in teenage use of nicotine devices made by companies such as Juul Labs Inc.