As Trump slams NATO allies, Obama defends 'international order'