President Trump lashed out at the U.S. automaker for eliminating nearly 15,000 jobs but GM said the move was forced by consumer demand.