One of Japan's largest trading companies has agreed to buy a 25% stake in a solar and wind project developer for €100 million ($133 million).