Naftali Bennett, heckled and insulted, replaced Benjamin Netanyahu as prime minister by the narrowest of margins.