Madara's goal was to cast IT, which he did. Had it been what it was supposed to have been and he hadn't been betrayed , it would've gone 100% perfectly, but he still did accomplish mission. Naruto never gave up and ended up being homage. Everyone else either gave up, died, or changed their mind. Sasuke had so many goals, Nagato died instead of creating peace, obito changed his mind. Naruto and Madara did it.