In the latest and arguably most significant legal challenge to Trump’s sweeping agenda, his administration has been accused of defying a federal judge.