General Motors Co. CEO Mary Barra said Monday that electric vehicles remain the future amid headwinds slowing EV adoption.