A Swedish government agency has agreed to buy 500,000 carbon credits at above-market prices from a cookstove project in Uganda.