Hours after Donald J. Trump was sworn in for a second term, he issued an executive order laying the groundwork.