Mr Netanyahu's rivals fear that if he remains prime minister he will push through legislation that would grant him immunity from prosecution while in office.