The move continues a remarkable turnabout toward the app for President Trump, who tried to ban TikTok in his first term.