Archer-Daniels-Midland Co. agreed to pay $40 million to settle a two-year federal investigation into the crop giant’s accounting practices that rocked its share price and eroded faith in the company’s ...