When a provision of the Minnesota Election Law cannot be implemented as a result of an order of a state or federal court, the secretary of state shall adopt alternative election procedures to permit the administration of any election affected by the order. The procedures may include the voting and handling of ballots cast after 8:00 p.m. as a result of a state or federal court order or any other order extending the time established by law for closing the polls. The alternative election procedures remain in effect until the first day of July following the next succeeding final adjournment of the legislature, unless otherwise provided by law or by court order.