The social media giant Facebook Inc is headed toward an agreement with the U.S. government that would put it under 20 years of oversight, according to a source knowledgeable about the discussions.