Trump vows to stop 'endless wars'