Leading senators from both parties said that they would make changes in Medicare to reward or penalize doctors, hospitals and nursing homes according to the quality of care they provided.