The State of Michigan has canceled a giant factory that would have brought cutting-edge battery technology to America.