The order was passed on July 2 in a suit filed by the actor alleging widespread misuse of his identity across social media and websites with AI-generated content