Are data centers worth the resources they use?

When are huge data centers worth the electricity and water they use, and when are they not? If they are, how can communities ensure they pay their fair share?