'Law must thwart' Israeli barrier