Almost three years ago, New York City joined governments across the country to ban TikTok from its devices over security concerns about the Chinese social media site.