WASHINGTON — With members of both parties expressing distaste at some of the particulars, Congress on Friday voted to extend payroll tax cuts and unemployment benefits and sent the legislation to President Obama, ending a contentious political and policy fight.