As Amazon’s operations grow, so does the work behind the scenes to help make them more sustainable. Here’s where the company is making progress—and what’s ahead.