Tesla shareholders have overwhelmingly endorsed a massive pay package for CEO Elon Musk that could reach $1 trillion.