A federal judge found that efforts by Pete Marocco and affiliates of Elon Musk to seize control of the U.S. African Development Foundation earlier this year appeared unlawful.