As the second wave of a global “ransomware” cyberattack spread to at least 150 countries over the weekend and into Monday, the National Health Service in Britain—the first high-profile target last week—was still struggling to recover.