German government officials previously accused Musk of election interference as his endorsement comes weeks ahead of the country's general elections in February.