Olaf Scholz will head a three-party coalition with broad plans for transition to a green economy.