The chancellor says he would support the Bank of England to “do what it takes” to reduce inflation.