Mr. Trump said the apps can access private information from their users. It could be used by the Chinese government to “track the locations of Federal employees and contractors, and build dossiers of personal information,” he added. The order takes effect in 45 days—after Mr. Trump leaves office.