Having friends in the board is fine. Using it for excessive compensation is not. The court argued that Elon effectively has a full control on the board and they failed to prove whether the package is fair, hence Elon effectively set the package himself. I don't know the technical details on the "fairness" so won't talk about this though.