The major powers , including the United States and China , agreed yesterday on a system to inspect suspect cargoes in and out of North Korea despite Pyongyang 's warning that it would regard such checks as an act of war .