US President Donald Trump has pledged to take his second legal defeat, blocking his revised travel ban, to the Supreme Court.