A judge called the anti-migrant activist a “publicity seeker” who disrupted the work of rescue crews.