No court with proper jurisdiction ever judged the settlements illegal. The International Court in the Hague gave an opinion of the situation, not a judgment. This is major point that most people ignore. They refused to give a judgment because they lack proper jurisdiction. Without an entity being judged illegal by a court having proper jurisdiction, how can that entity be illegal?
UN to hold off on separate Afghan bombing probe for now (Reuters)
from the article: Israel policy allows settlers to rampage unchecked