State election officials pre-drafted legal briefs to prepare for potential litigation on and around Election Day