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.