The president is taking credit for tech companies’ pledges to limit data center impacts.