Boeing has agreed to plead guilty to a criminal fraud conspiracy charge to resolve a U.S. Justice Department investigation linked to two 737 MAX fatal crashes, the government said in court filing late on Sunday.

The plea, which requires a federal judge's approval, would brand the planemaker a convicted felon. Boeing will also pay a criminal fine of $243.6 million, the Justice Department (DOJ) said in a document filed in federal court in Texas that provided an overview of the agreement in principle.

The charge relates to two 737 MAX crashes in Indonesia and Ethiopia over a five-month period in 2018 and 2019 that killed 346 people and prompted the families of the victims to demand that Boeing face prosecution.