There are plenty of things the Trump admin has done where that applies. This is (likely) not one of them.

This idiocy hasn't had its day in court yet, but (especially given how the courts have turned against the administration in most cases recently) it seems highly likely this will be found to be illegal.