Federal judge invokes 'extraordinary measures' to ensure mail-in ballots get delivered on time