Israel ratified a law on Thursday limiting the circumstances in which a prime minister can be removed, despite worries voiced by a government jurist that it may be meant to shield the incumbent Benjamin Netanyahu from any fallout from his corruption trials.
The amended definition for the "incapacity" of national leaders is among legislative measures by the religious-nationalist coalition that have tipped Israel into crisis, with the opposition arguing that judicial independence is in peril.
The coalition says the overhaul is aimed at pushing back against what it calls Supreme Court over-reach and restoring balance among branches of government.
By a 61-to-47 final vote, the Knesset approved the bill under which prime ministers can be deemed unfit - and compelled to step aside - either if they or three-quarters of cabinet ministers declare them so on physical or psychological grounds.
The stipulations fleshed out a quasi-constitutional "basic law" that provides the government with guidance in the event of a non-functioning prime minister - but which previously lacked details on circumstances that may give rise to such situations.
According to the Israel Democracy Institute think tank, the rule had earlier left Netanyahu vulnerable to a possible assertion of his incapacity by Attorney-General Gali Baharav-Miara, should she perceive an attempt by him to halt his three court cases.
The new law precludes this, IDI senior researcher Amir Fuchs said - while adding that he had considered such a finding by Bararav-Miara to be an unlikely "extreme case".
Netanyahu denies all charges against him, and has cast the trials as a politicised bid to force him out of office.
Baharav-Miara - who was appointed by the former, centrist Israeli government - said last month that Netanyahu must stay out of his coalition's push for a judicial overhaul because of what she deemed a conflict of interest arising from his trials.
Baharav-Miara's deputy, Gil Limon, voiced misgivings over the incapacity bill during a Knesset review session on Tuesday.
"What we see before our eyes is a cluster of legislation elements that are most troubling and are being advanced at great speed," Limon said, according to an official transcript.
"They have the potential to serve the personal interests of a man regarding the outcomes of legal proceedings he is facing."
The Movement for Quality Government in Israel filed a Supreme Court appeal against the new law. Should the court rule to overturn the law, that would in itself fuel the feud.
"Netanyahu and his coalition of corrupt men are trying every possible maneuver in their attempts to escape the threat of justice," a statement from the watchdog group said.
(Writing by Dan Williams; Editing by Raju Gopalakrishnan and Hugh Lawson)