A jury on Friday convicted a former Goldman Sachs programmer of stealing the investment bank’s high-frequency trading code.