Hours before a deadline that would require TikTok to be divested or shut down, the incoming White House administration offered a lifeline to the widely used video-sharing app.