Ukraine's president hoped that he could drive Hungary into economic chaos by shutting down the Druzhba pipeline.