Billions of pounds of funding will be set aside to compensate the victims of two major public scandals, Rachel Reeves has announced in the Budget.