The Quebec government has invested $177 million in Lion Electric Co., once a star of the province’s EV aspirations.