Prime Minister Benjamin Netanyahus corruption trial will resume after the Israeli election, a court has ruled.