A Social Security-related bill with bipartisan support would expand benefits for workers who are also eligible for other pensions.