General Motors Co. plans to spend $6.5 billion on an electric pickup plant and battery factory in Michigan thanks in part to a $1.8 billion incentive package put together by the state to make sure the automaker didn’t take a big piece of its EV business elsewhere.