Recently a judge in Delaware voided Elon Musk's contracted pay package with Tesla. Here's a sample story about it:
It seems like this is something that shareholders voted on, and that the size of the pay package is based on the performance of the shares. So what's the legal basis for this judge's ruling?