Iran doesn’t have access to that money and they never will.
They can buy humanitarian stuff like food. Then, the international community will pay that bill with the money. It never gets touched by Iran.
So, to say they are funding the war with it is wrong.