A “simple mistake” forced Bolton Council to borrow £25M at a cost of £1.4M to plug a gap on education spending.