The European Central Bank has raise interest rates a quarter point in efforts to quell inflation as the Iran war drives oil prices higher.