House Democratic leader Nancy Pelosi bruised some longtime liberal allies when she worked with Speaker John Boehner to craft a rare bipartisan accord on Medicare. But lawmakers say it will enhance her stature as a dealmaker, and may help her party avoid being sidelined by majority Republicans over the next two years.