Bank of America Corp. agreed to pay $404 million to Freddie Mac to settle claims related to bad mortgages the bank sold to the housing finance giant, the Los Angeles Times reports.