Commerzbank is poised to put a half-decade of legal woes behind it as it prepares to settle parallel U.S. investigations into sanctions violations and allegations about the bank’s role in one of Japan’s biggest accounting scandals, according to two people familiar with the matter.