Goldman Sachs Group (GS) has agreed to pay a $50 million fine in order to settle allegations that one of its employees took confidential documents from the Federal Reserve.