As technology costs have declined, more developers are creating buildings that can benefit the Earth by tackling pollution and save money by producing their own power.