The decision is the latest court victory for US President Donald Trump’s campaign targeting foreign student protesters.