Court sets plan to make sure Postal Service delivers ballots quickly, one week ahead of election