Boeing Co. has reached an agreement with the U.S. government to plead guilty to criminal conspiracy related to two fatal crashes of its 737 Max jetliner, paving the way for a potential courtroom showdown with the families of the victims.