Fannie Mae, Freddie Mac can retain future earnings, according to agreement between treasury and regulators