This week, TikTok won two straight court cases that threatened to make it more difficult for the company's detractors to…