Napoleon came back into favor after he was brought in for military experience and used to successfully:
Suppress counter revolutionary forces
Mediate some border disputes
Plan an invasion into Spain
Design a new rifle