City officials voted 8-1 in favor of legislation that would ban facial recognition tools from being used by local government.