Judge questions Trump-led effort to exert greater influence over elections process ahead of upcoming midterm vote.