Israel apologizes for treatment of NYT journalist