US court upholds law that could ban TikTok