A court in South Africa has dismissed an appeal from the country's government for Wal-Mart Stores' acquisition of a controlling stake in local retailer Massmart Holdings to be reviewed.