US National Security Adviser puts Beijing’s cooperation down to Trump’s pledge to take military action against Pyongyang