Israeli high court restricts barrier