A Delaware state court judge has thrown out the 2018 pay package that helped to make Tesla CEO Elon Musk one of the richest people in the world.