The U.S. Justice Department, with allies, disrupted four botnets infecting over 3 million devices worldwide, targeting critical infrastructure and demanding ransoms.