Trump takes parting shot at Mattis, his view of US allies