The bank’s agreement with industry regulators stems from accusations that it misrepresented the risk of Puerto Rico bonds to clients on the island.