Mr. Trump’s assertion that China had failed to pressure North Korea into curbing its nuclear and ballistic missile program means that Beijing must now confront the prospect of a stormier relationship ahead — not just over North Korea but also tougher stands on trade, currency and the South China Sea that Mr. Trump set aside as he sought President Xi Jinping’s help with Pyongyang.