The two nations’ leaders, Vladimir Putin and Kim Jong Un, pledged mutual support against foreign aggression.