Investors in the social-media platform’s U.S. business agreed to give the government several multibillion-dollar payments, sources said.