In a narrow vote of 50-49, lawmakers undid Obama-era Labor Department rules that assist municipal-run retirement plans.