With its new pact with North Korea, Russia raises the stakes with the West over Ukraine