In a tweet, President Trump referred to a long-debunked myth about how Gen. John J. Pershing crushed a Muslim rebellion in the Philippines more than a century ago.