The electoral commission said its application for leave to appeal was urgent because the outcome would affect the choice millions of voters make in May