Quote from DAS Trader:
Remember, a lawful order is any order given by a competent higher authority that any reasonable person would not consider to be contrary to the laws of the United States (that was the definition when I was in).
It is, and I am assuming the POTUS to not have lost his mind.