His single-minded pursuit of a nuclear arsenal to counter what he sees as the threat of invasion by the United States has ratcheted up tensions not only with his rivals but also with primary trading partner China and with Russia, once a key benefactor.