Correct me if I am wrong but spending Campaign Money to hide an affair is an illegal use of campaign fund.
While the statement is true, it doesn't apply to this case.
Campaign funds were not spent, the money was paid to Cohen from the Trump Organization. A business entity, not from a campaign account.
WW