President Donald Trump lashed out at China for its inability to exert sway over North Korea.