Ten months into his new administration, Trump has placed much of his attention on foreign affairs as he works to end conflicts, secure trade agreements and burnish a presidential peacemaking legacy.