How long had Pelosi served as majority leader