The deal includes a guarantee from Goldman Sachs to return at least $1.4bn in 1MDB bonds.