And funnily enough, nobody objected when Egypt annexed Gaza, and Jordan annexed the West Bank in 1948.
As far as the international law is concerned, Israel was completely in the clear to annex the entire place until 22nd of November, 1967. After that it gets a bit murky.
That still doesn't change the fact that the entire idea of an independent Palestinian state happened because Israel just didn't annex it all in 1967.
But going back to the UNSC Resolution 242.
> 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
There are still no recognized boundaries of Palestine, and there sure as hell weren't in 1967. The original UN Partition Plan for Palestine was adopted, but the problem with its adoption is the fact that it was a General Assembly resolution, and the problem with General Assembly resolutions is that they are notoriously non-binding, and thus not worth the paper they are printed on.
Which brings me back to my initial point that the international law just doesn't matter, because technically speaking, the original Partition Plan was settled international law. Worked out great in practice.