Spending on defence and net zero can result in longed-for growth if done right