According to its drafters, UNSC 242 does not call for the withdrawal from all territories occupied in 1967, leaving room for the states involved to negotiate secure borders as part of a peace agreement:
(i) Withdrawal of Israel armed forces from territories occupied in the recent conflict;
(ii) Termination of all claims or states of belligerency and respect for and acknowledgment of the sovereignty, territorial integrity and political independence of every State in the area and their right to live in peace within secure and recognized boundaries free from threats or acts of force.
Of course no such boundaries have been agreed upon. And if you think any Arab countries or the PLO are interested in terminating claims on Israel regardless of borders, I have a bridge you may be interested in.
So much for the international law experts on the Times editorial board and their statement that the decision was “bad law.” I’ll leave their arguments that it is “bad policy” and “bad politics” for another time.