President Donald Trump has a skill for recruiting Cabinet officers he has treated badly. Serving in his administration can require selfless devotion to duty. Jeff Sessions, the attorney general, could tell you about that. So could Nikki Haley, the U.S. ambassador to the United Nations, who is swiftly becoming the Cabinet superstar.

She took the lead in persuading China and Russia to join the sanctioning of North Korea, all to persuade North Korean President Kim Jong Un to think again about his boastful threat to ignite World War III.

Such a catastrophe might at last be “the war to end all wars,” as former President Woodrow Wilson said of World War I. Kim’s reckless exuberance with his nuclear toys has terrified the world into a new reality, and Haley used it to win the approval of United Nations Resolution 2371, which she calls “the single largest economic sanctions package ever leveled against the North Korean regime” and “the most stringent set of sanctions on any country in a generation.”

If enforced to the limit — and that’s a big “if” — the effects could reduce Pyongyang’s exports by $1 billion, which is approximately a third of its revenue from exports. There is a total ban on its coal and minerals exports, which are key to keeping its nuclear and missile scientists at work.

North Korea sees “the international community standing with one voice,” Haley says. “China didn’t pull off. Russia didn’t pull off. All of the Security Council and the international community said, ‘That’s enough. You’ve got to stop it. It’s reckless. It’s irresponsible.’ The international community really laid down the groundwork of saying, ‘We’re not going to watch you do this anymore.'” Un’s provocations have even exhausted the patience of China, his enabler and patron.