Retired chief justice served on Israel's top court for over 20 years, was also an ex-attorney general and IDF's top legal official