In India, a company with a spotty environmental track record is raking it in thanks to carbon credits.