The impact of the Iran war poses significant risks for the government’s spending plans, the Institute for Fiscal Studies says.