It can be done and was done, fait accompli.
That it was against law is academic, it happened and was enforced. It is far from unusual for illegal orders to be made and enforced, our government has done it a number of times in connection with the Human Rights Act, some far more deserving than...