Andy Burnham has committed to reaching the Nato target of 3.5% spending by 2035, but not 3% by 2030.