Mr Trump’s action, hours after he was sworn in to a second term, echoed his directive in 2017.