WASHINGTON — In victory for both parties, Congress approves legislation changing how Medicare pays doctors.