Investor complaints against Bank of America over mortgages, which have bedeviled the bank since last fall, appear to be close to a resolution as the bank is on the verge of paying $8.5 billion to a group of private investors, according to people familiar with the matter.