Judging by (https://history.stackexchange.com/questions/47780/how-did-hi...) the judge and other were already tilted in his favor, as was the Bavarian state as well.
And it also, kind of worked, from then on Hitler preferred the legal way instead of doing it like Mussolini (i.e. a putsch). It's one part taking the fall for the Ludendorff, one part Bavaria already being sympathetic to him.