Supreme Leader Ayatollah Ali Khamenei , the country 's most powerful figure , has ordering ( ordered ) an examination into the fraud allegations , although he had initially welcomed Ahmadinejad 's victory .