A judge has agreed to dismiss the suit, which was brought by rare books dealer Glenn Horowitz after the criminal trial against him was abandoned