Senate approved a bill aimed at either prohibiting TikTok or compelling its sale.