Hagoromo give nearly all of his chakra to Naruto and Sasuke, then he called some dead spirit to help him with greatest possible summoning in history.
Its not his fault that Indra was already manipulated by Zetsu, after all Zetsu made all Uchiha follow what he wanted them. And that is why Naruto is most as Ashura, father which have too good ideals to see real world, without talent at the start (Because if Hashirama did not have talent he would be dead) and later grow thanks to his bonds. And Sasuke was so much like a Indra,natural born genius, manipulated by someone else. In the end Hagoromo realized his mistakes and maybe that was part which saved Sasuke from doing some killing crazy stuff.