Boston has banned the use of facial recognition technology by the city’s government, and prohibited any city official from obtaining the technology from third parties.