TikTok's CEO has vowed to fight in the courts to overturn a newly signed US law that could see the popular app banned due to allegations it is controlled by the Chinese government.