Lebanon and Israel agree maritime deal despite decades of hostility