Republicans said bipartisan legislation that reworks how Medicare pays doctors is a milestone toward curbing a huge, growing benefit program.