Goldman Sachs has been ordered to pay a $36.3 million penalty.