IT literally one shots everyone except for Kaguya and Hagoromo while Sasuke protects important people like Naruto and Kakashi and jj Obito withstands IT with his rinnegan.
It's basically adult Naruto, adult Sasuke, 3 eyed Madara, jj Obito, and MS Kakashi vs Kaguya and non jj Hagoromo.
Madara should most likely be a stronger than Hagoromo and the team has techniques that can deal with Kaguya's jutsu's.
Kamui snipe and ameno can deal with all killing ash bone.
Kairiki musou can deal with eighty God vacuum.
Obito and Kakashi together and Sasuke can open portals to deal with amenominaka and yomotsu hirasaka if they most likely get caught by it. Naruto and Madara are about equal in reaction speed so yomotsu hirasaka isn't a problem.
Kaguya probaly gets sealed before expansive tsb gets off or they can run like some biitches to kamui dimension.