Boeing is to plead guilty to a criminal fraud conspiracy charge to resolve a US investigation into two fatal 737 MAX crashes.