All UN Draft Resolutions attempting to brand Israel as aggressor or illegal occupier as a result of the 1967 Six-Day War, were all defeated by either the UN General Assembly or the Security Council:
Draft Resolution A/L.519,7 19 June 1967, submitted by: the Union of Soviet Socialist Republics, "Israel, in gross violation of the Charter of the United Nations and the universally accepted principles of international law, has committed a premeditated and previously prepared aggression against the United Arab Republic, Syria and Jordan."
Draft Resolution A/L.521,8 26 June 1967, submitted by: Albania "Resolutely condemns the Government of Israel for its armed aggression against the United Arab Republic, the Syrian Arab Republic and Jordan, and for the continuance of the aggression by keeping under its occupation parts of the territory of these countries."
Draft Resolution A/L.522/REV.3*,9 3 July 1967, submitted by: Afghanistan, Burundi, Cambodia, Ceylon, Congo (Brazzaville), Cyprus, Guinea, India, Indonesia, Malaysia, Mali, Pakistan, Senegal, Somalia, United Republic of Tanzania, Yugoslavia and Zambia. "Calls upon Israel to withdraw immediately all its forces to the positions they held prior to 5 June 1967."
Draft Resolution A/L.523/Rev.1,10 4 July 1967, submitted by: Argentina, Barbados, Bolivia, Brazil, Chile, Colombia, Costa Rica, Dominican Republic, Ecuador, El Salvador, Guatemala, Guyana, Honduras, Jamaica, Mexico, Nicaragua, Panama, Paraguay, Trinidad and Tobago and Venezuela. "Israel to withdraw all its forces from all the territories occupied by it as a result of the recent conflict."
In short, Israel did not violate the provisions of the UN Charter, is not an aggressor, and is not required to withdraw from all territories.