Pelosi served the first four during the 2000s until Republicans recaptured the House majority in the tea party election of 2010, a conservative uprising that presaged the rise of Trump.