The Justice Department filed lawsuits Thursday to block two megadeals in the health insurance industry, saying the deals would harm competition across the country.

The planned deals — Anthem's proposed $54 billion acquisition of Cigna and Aetna's plan to buy Humana for $37 billion — would reduce to three the number of large national health insurers.