The deal, which the leaders said covered areas including security, trade, investment, and cultural and humanitarian ties, could mark the strongest connection between Moscow and Pyongyang since the Soviet Union collapsed in 1991