As Rep. Nancy Pelosi is set to retire, few have matched the former House speaker's impact on the modern Democratic Party.