Government departments will look at cutting budgets to fund defence, minister says