Ukraine’s involvement in cutting off energy supplies to its own allies raises uncomfortable questions.