Israel's top court has suspended an investigation into military and intelligence officials failings into Hamas's surprise attack on 7 October.