Your wondering is justified, and (like almost every other EU issue nowadays) Hungary was a holdout opposer, and used the vote to blackmail in other areas. They struck a deal in a "package" that includes Ukrain aid as well, in return they got some of the EU funds that was held back because of corruption. What a great happy Union this is.
Also the EU repeatedly called out Hungary for corruption but now Hungary is having its moment pointing that several member of the european parliaments have been caught in a very serious corruption scandal (and these are only those who got caught).
What a great happy honorable Union full of integrity we enjoy too.
https://www.politico.eu/article/eu-deal-hungary-drop-vetoe-r...