Bank of America Corp. is closing in on an agreement to pay $8.5 billion to settle claims from a group of high-profile investors that lost money on mortgage-backed securities purchased before the U.S. housing collapse, people familiar with the matter said.