The ruling puts an end to two appeals in a case that mixed economic crimes, leaks about Venezuela, and espionage.