The consulate, first established in 1838, was set to be closed by the Israeli government in retaliation for UK sanctions.