Well, that's kind of true. The Iran war has certainly stopped proceedings against Netanyahu, because the courts are shut down - along with much of the country.
That said, this can't last much because the economy is completely shut down, and the trials against him were ongoing, eve amidst the Gaza war.
So he can't just indefinitely put off the trial against him.