Bank of America Corp. has reached a $165 million agreement with a federal credit-union regulator to settle allegations that the bank played down the risks of poor-quality mortgages packaged into securities, the Wall Street Journal reports.