The Israeli prime minister says his appearance in court jeopardises his country’s national security at a critical time.