Bank of America Corp. agreed to a $2.43 billion settlement with investors who suffered losses during its acquisition of Merrill Lynch & Co., resolving one of the biggest legal battles to stem from the takeover.