Xcel Energy Inc. became the first major U.S. utility owner to pledge to fully phase out carbon-dioxide emissions that cause global warming.