It’s kind of a shitty law in the first place, but he was assuredly guilty of it. It’s still unusual that they went after him for it when it wasn’t connected to any other crime (which is usually when federal prosecutors use this law) and really unusual that the judge threw out the plea bargain.