Boeing agreed to plead guilty to fraud charges tied to its troubled 737 Max crashes last year.