The law, which was expedited to a vote after being unanimously approved by a committee last week, provides China-based ByteDance with 165 days to withdraw from TikTok.