Musk had accused the agency of selective enforcement and challenged the case as an affront to his constitutional free-speech rights.