South Dakota turned down millions of dollars in federal cybersecurity grants and instead is spending more than $7 million in state taxpayer funds to battle what has become a constant threat of attacks on computer systems used by government, industry…