Consulting firm McKinsey & Co is close to an agreement with U.S. prosecutors to pay more than $500 million to resolve longstanding federal investigations