JERUSALEM – Aharon Barak, a former president of Israel’s Supreme Court, has resigned from his role as ad hoc judge on an International Court of Justice panel weighing a genocide allegation filed over the country’s war in Gaza, officials said on Wednesday.