No, I think on less than 24 hours, he's directed his staff to do so, and they have.
> Or maybe is it the case that this work has been ongoing for months...?
It may leverage background work that has been done in the past without being directed at a specific legislative outcome; finding that existing work, presenting a summary and recommended course of action, and then following through with drafting a bill is fairly routine legislative staff work, and there's certainly lots of work that's been done and is available on the issue from both government and non-government sources that staff could readily find, summarize, and present as the basis for an action decision.
Much like many of us in the tech industry, coming up with a basic framework for automation in a 24 hr period can be done.
Obviously in both cases more work needs to be done but the basics are there. And researching egregious border guard incidents is a quick internet search away. One hour of that will have you fuming.