A judge has temporarily barred the government from various methods of pressuring election officials in the runup to the midterms.