In recent days, Mr. Miller has been working on what is expected to be another contentious order: an as-yet-uncirculated rewriting of the guest worker program that is likely to impose new restrictions on the cheap foreign labor that Mr. Miller deplored in many of his 2013 emails, according to two officials familiar with their planning.