Congress has passed a bill that would allow public workers who receive a pension to also collect social security benefits.