Data-center construction is supporting U.S. commercial building activity as high rates, labor shortages and equipment delays weigh on other projects.