Michigan joined Minnesota in announcing cyberattacks on its state water supply, saying nine systems were the target of attacks that intelligence officials have blamed on Iran.