ByteDance's valuation has surged to $300 billion amid scrutiny and potential U.S. ban on TikTok, prompting legal action by the company.