United, Juventus, Roma and Basel all went through with victories in their final group games, but Atletico Madrid, beaten finalists in 2014 and 2016, were eliminated.