Michigan has joined Minnesota in reporting cyberattacks on water systems but an official said all were operating “safely.”