Afghanistan's parliament voted earlier this month to dismiss Spanta for failing to convince Iran to rethink a forced repatriation of illegal Afghan refugees.
Afghan President Hamid Karzai countered that he would keep Spanta in office until he received clarification from the Supreme Court about the legislature's right to vote to dismiss Spanta.
UN spokesman Adrian Edwards said the UN's view is that under Afghanistan's constitution, only Karzai can dismiss ministers.
RFE/RL Afghanistan Report
SUBSCRIBE For regular news and analysis on Afghanistan by e-mail, subscribe to "RFE/RL Afghanistan Report."