Fourteen states have filed a lawsuit which begins with the words:
"There is no greater threat to democracy than the accumulation of state power in the hands of a single, unelected individual."
It explains the law and details illegal and unconstitutional actions by Elon Musk.
You might want to read the court filing for the details.
https://www.azag.gov/sites/default/files/2025-02/NM%20v.%20Elon%20Musk.pdf