President Donald Trump has sent shockwaves through the world after threatening to pull the United States out of NATO.