Court struck down US President Trump's executive order abolishing it, but he has pledged to challenge the ruling.