Consumer electronics giant Apple has tapped the euro green bond market, in a deal worth €2 billion ($2.2 billion).