Justices urge public and Knesset to stand against planned moves they say could endanger democracy, turn Israel into pariah