The company said it will stop making gas-powered passenger cars and SUVs, becoming the first American carmaker to do so. GM’s medium and heavy trucks will still be gas-powered.