A windfall for companies that build data centers and their suppliers is overshadowing weakness in other industries.