Minister for Economic Affairs Robert Habeck secured the deal on a visit to Doha as part of efforts to diversify Germany's energy supply, according to his ministry.