Treasury Secretary Henry Paulson and congressional leaders will work on legislation this weekend that would enable the federal government to buy hundreds of billions of dollars' worth of troubled loans.