A former McKinsey partner pleaded guilty Wednesday to using information he gained as an adviser to place bets ahead of Goldman Sachs’ acquisition of fintech lender GreenSky.