DSV said it would buy Deutsche Bahn’s logistics arm, Schenker, in a deal that values the business at nearly $16 billion, winning a monthslong sales process that saw sovereign wealth funds, private equity firms and shipping giant Maersk all weighing bids.