Goldman, Sachs & Co.’s practice of “title inflation,” conferring the rank of vice president to thousands of employees, cost it dearly in federal court in Newark on Tuesday.

U.S. District Judge Kevin McNulty held that a computer programmer charged with illegally taking source code was entitled to $1.7 million in legal fees and costs under bylaws providing for indemnification and defense of officers.