U.N. court: Israel barrier illegal