Tesla shareholders have approved a $1tn total pay package for their chief executive Elon Musk - the largest corporate payout in history.