I think you have it backwards. Trump didn't file it as an election expense, he filed it as a personal expense. They claimed the money was used to sway the election so it should have been reported as an election expense.
I think your mistake proves that this lawsuit was a joke because it could have applied no matter how the hush money was filed.
You have it incorrect,.. Trump paid the funds out of his business account(s) and then claimed it as a business expense,.. Prosecution claimed that this was a tax violation, and a possible campaign violation,.. Jury's choice.