The government sought to organise postal elections during the pandemic but courts have found some elements of those efforts to have been illegal.