Judge James Boasberg ruled the Trump administration likely exceeded its constitutional authority by pressuring California officials to segregate ballots cast by suspected noncitizens, delivering a setback to federal election oversight on the eve of the midterms.