There have been rulings by international courts that have no jurisdiction over Israel, and that Israel wasn't even represented at because of this lack of juridiction. That is not international law either.
Resolutions 242 and 338 require Israeli withdrawl AFTER a negotiated settlement of SOME of the land. There was no territorial despute with Lebanon, Egypt and Jordan GOT their land back, and the Palestinians and Syria didn't negotiate in good faith.