Sergey Aleynikov, a former vice president of Goldman Sachs Group Inc. who was convicted of stealing computer code from the company, has lost a second attempt to make his former employer pay the legal fees from his defense.