There is "no doubt" the UK "will spend 3% of our GDP on defence" in the next parliament, the defence secretary has said.