The state’s elections board had sought to scrap the contest in light of the pandemic and other candidates rallying around Joe Biden as the Democratic nominee.