The donation occurred as Musk sparred with politicians including Bernie Sanders and Elizabeth Warren over inequality and a proposed wealth tax.