Trump vows to meet ‘history’s great test’ by conquering extremism