A Democrat powerhouse, Pelosi had one of the most consequential legislative careers in history.