Goldman Sachs has agreed to pay nearly $3bn (£2.3bn) to end a probe of its role in the 1MDB corruption…