Small correction to an excellent post: he didn't refuse his orders: having standing from the fact of receiving orders he mounted an enquiry to clarify their legitimacy. This was to assure himself of legal protections in the future.
Had the matter not been made moot by the revocation of the orders, it's extremely unlikely that any court would have ruled that he had legal standing based on the claims he was making.