General Motors Co. loaned the buyer of its half-century-old assembly plant in Ohio $40 million to help the cash-strapped startup roll out an electric pickup truck.