They were barred from formally anexing the areas by the US, Europe, etc, all of whom swore that if Israel committed itself to a 2 state solution everything would be A-OK. We see how that worked out.
When did Israel commit itself to a 2 state solution? It would seem they've made it practically impossible. How can you have two equal states, if one is telling the other where they may or may not establish their capital?