The complaint , brought against the company and its top executives , said the No. 2 U.S. home funding company had improperly bought risky home loans that dropped in value and led to big losses for Freddie Mac investors .