The leaders of the Senate Banking Committee on Tuesday announced an agreement on legislation to wind down government-owned mortgage financiers Fannie Mae and Freddie Mac, jump-starting a long-standing debate that could still take years to resolve.