US president has pulled out of a global climate accord, launched a trade war with China and built bridges with Russia.