The city banned the use of facial-recognition technology by city departments — including local police — as well as public-facing businesses such as stores, restaurants and hotels.