General Motors will lay off 2,000 workers at two US assembly plants early in 2017, the automaker said on Wednesday.