The Las Vegas Sands Corporation, the casino company controlled by Sheldon G. Adelson, a major Republican donor, has agreed to pay the federal government more than $47 million to resolve a money-laundering investigation that cast an unwanted glare on Mr. Adelson and his gambling empire during the presidential campaign last year.