Hungary's outgoing prime minister said he will approve the funding if oil transit is restored as promised by Kyiv.