Bipartisan Senate legislation would wind down Fannie Mae and Freddie Mac in five years and in the interim would maintain the current arrangement in which the mortgage financiers pay all of their profits to the Treasury.

A draft of the measure, released yesterday by Senate Banking Committee Chairman Tim Johnson and Republican Mike Crapo, would ensure the United States maximizes its return on the 2008 taxpayer bailout of the two companies before junior preferred and common shareholders receive any proceeds.