It opens themselves up to influence peddling, but is it illegal in its own right?
If I were Judge Hackland, I would be worried about the precedent he would set by not following the law and kicking Ford out of office, assuming he does, in fact, find him guilty. It's not his place to find a way...