Major technology companies are raising their spending on data centers to support powerful artificial intelligence models, boosting demand for electricity, computing capacity and specialized facilities.