Saudi Arabia’s quarterly fiscal deficit contracted by almost 75%, benefiting from a spike in global oil prices even as the Iran war shrank the economy.