The president’s executive order is the latest effort to blunt Democratic plans to investigate the administration’s actions.