Shareholders of New Zealand dairy giant Fonterra have voted in favour of implementing the firm's controversial Trading Among Farmers scheme.