Microsoft Corp. was breached as part of the massive hack that used a backdoor in SolarWinds software, as part of what the tech giant’s president called “effectively an attack on the United States.”