Microsoft said its cloud services were recovering from an outage that disrupted its workplace software products and the operations of several companies.