Attorney General Pam Bondi wrote in letters to technology companies that President Trump had decided that shutting down TikTok would interfere with his “constitutional duties to take care of the national security and foreign affairs of the United States.”