The former House speaker stepped aside from leadership after her party lost control of the chamber in the midterms.