The case is a procedural win for Trump, who has faced a litany of legal challenges to his mass deportation policies.