Comments made by General Motors CEO Mary Barra ahead of the New York auto show have attracted a sharp retort from a US senator.