The justices had been asked to examine the legality of the state’s grace period for late-arriving mail-in ballots.