Agreement paves way for flagship defence and infrastructure package to be adopted by parliament next week