Sure, unless the order was immediate, such as, “Effective today, no one may cash out a 401(k), pending the new law proposed to nationalize those accounts.”
Illegal, sure, but Obama and the Democraps have a history of illegal acts.
When it comes to keeping government funded and running, anything can be packaged and sold as “legal.”