Alex,
to add to Gordon's post. See the following link, in particular the "note to editors" at the end.
dpac.uk.net/2017/12/big-legal-victory-fo...nlawful-today/#_edn4 It states that "the government intends to appeal the decision. The regulations will not be quashed until the court of appeal decides whether or not the appeal should proceed"
It is anticipated a decision on this in early 2018.
Regards,
Ty