1) Palestinians and arab/muslim people repeatedly have declared war against israel and attacked israel.
2) Israel is legally occupying these areas since they have been forced by war to move into these lands to defend themselves.
3) Israel has given this land over to the palestinians to police with the agreement that if the palestinians could maintain order and live peacefully with israel, israel would leave them alone.
4) Palestinians have failed to maintain peace and have openly attacked israel and sheltered those who attack israel.
The UN recognizing a state that cannot maintain order in its own borders is a political act and has no value. It almost guarantees that its neighbors will be forced to invade it out of self defense.
This is a problem only the palestinians can solve - until the palestinians can maintain peace, they will not have peace.