Article 7
1. There are established as principal organs of the United Nations: a General Assembly, a Security Council, an Economic and Social Council, a Trusteeship Council, an International Court of Justice and a Secretariat.
(…)
Article 94
1. Each Member of the United Nations undertakes to comply with the decision of the International Court of Justice in any case to which it is a party.
2. If any party to a case fails to perform the obligations incumbent upon it under a judgment rendered by the Court, the other party may have recourse to the Security Council, which may, if it deems necessary, make recommendations or decide upon measures to be taken to give effect to the judgment.
(…)
Article 96
– The General Assembly or the Security Council may request the International Court of Justice to give an advisory opinion on any legal question.
– Other organs of the United Nations and specialized agencies, which may at any time be so authorized by the General Assembly, may also request advisory opinions of the Court on legal questions arising within the scope of their activities.