President Trump has the smarts and the moral courage to listen to his generals.