President Trump has taken a lot of grief about his tough talk on North Korea, especially from liberal mainstream media outlets.

Trump went all in, even getting all up in China's grill — something few U.S. presidents are wont to do.

But it turns out all the critics were wrong and Trump was right.

On Saturday, the United Nations Security Council voted unanimously to impose new sanctions on North Korea, with both China and Russia joining to vote for the U.S.-proposed sanctions. The sanctions are estimated to cut the rogue state's $3 billion annual export revenue by as much as $1 billion.

"The U.S.-drafted resolution bans North Korean exports of coal, iron, iron ore, lead, lead ore and seafood," Reuters reported. "It also prohibits countries from increasing the current numbers of North Korean laborers working abroad, bans new joint ventures with North Korea and any new investment in current joint ventures."

Before the vote, U.S. Ambassador to the United Nations Nikki Haley told the council: "We should not fool ourselves into thinking we have solved the problem. Not even close. The North Korean threat has not left us, it is rapidly growing more dangerous."

After the vote, Trump was gleeful in a pair of Saturday evening posts on Twitter:

North Korea's President Kim Jong Un has grown increasingly belligerent, firing two inter-continental missiles last month. Trump took to pressing China hard, convinced that North Korea's nearest neighbor and main benefactor could rein in the dictator.

On Sunday, Beijing backed the sanctions, calling on North Korea to stop its missile and nuclear tests.

Chinese Foreign Minister Wang Yi, sitting with North Korea's top diplomat during the meeting in Manila, urged the North to "maintain calm" despite the U.N. vote, the Associated Press reported.

"Do not violate U.N.'s decision or provoke international society's goodwill by conducting missile launching or nuclear tests," Wang said, in an unusually direct admonition.

After all his tough talk on China, Trump threw Beijing a bone in a White House statement released after the U.N. vote:

"President Donald J. Trump commends the United Nations Security Council for passing a new resolution that increases sanctions on North Korea in response to its recent ballistic missile tests. The President appreciates China’s and Russia’s cooperation in securing passage of this resolution. He will continue working with allies and partners to increase diplomatic and economic pressure on North Korea to end its threatening and destabilizing behavior."