The S.E.C. said the cheating involved hundreds of the firm’s workers from 2017 to 2021, resulting in the largest penalty ever imposed by the agency against an auditing firm.