Election officials had been waiting until Mr. Yanukovych exhausted his appeals to the Supreme Court before officially declaring a winner .