Israel’s parliament passed a law on Tuesday that could see groups critical of government policies toward the Palestinians banned from entering Israeli schools and speaking with pupils.