The decision came after Germany took control of a refinery majority owned by Russian oil giant Rosneft, something Poland had demanded.