Loved and loathed, Israel’s ousted long-term PM made his mark on the country at home and abroad.