Fannie Mae, Freddie Mac can keep future earnings, per agreement between Treasury and regulators