Auto giant General Motors said it plans to sell only electric cars and SUVs by 2035 and achieve carbon neutrality with its cars and global operations by 2040.