The technology giant has also pledged to be using only carbon-free energy by 2030.