A disgraced former Goldman Sachs banker turned government cooperator was sentenced Thursday to two years in prison for his role in the looting of billions of dollars from a Malaysian sovereign-wealth fund in a global scandal that tarnished the Wall Street bank.