In one of their last acts this year before adjourning, lawmakers passed a bill entitling doctors to a bonus from Medicare if they report data on the quality of their care, using criteria like whether they prescribe aspirin or beta blockers to heart attack victims.