Jack Dorsey's Block, Inc. reached a $40 million settlement with New York's top financial regulator after an investigation found that the company had "critical gaps" in anti-money laundering requirements