The Bank of England has settled a dispute over pay with staff that led to the central bank's first strike in more than 50 years.