General Motors Co. moved to solve two major political headaches on Wednesday as U.S. President Donald Trump announced the Detroit automaker will sell its Lordstown, Ohio, plant to a company to build electric trucks, while GM said it would maintain some operations at a Canadian plant.

The decision came after GM faced months of criticism over its plan announced in November to close five North American plants and cut 15,000 jobs. GM's decision to close the small-car Ohio assembly plant in a key state in the 2020 election had already become fodder for several Democratic presidential candidates.

GM did not immediately comment but said it planned to make an announcement later in the day.