The second-largest U.S. bank harmed hundreds of thousands of customers over a period of several years and across multiple products, the Consumer Financial Protection Bureau said.