The memo weakens President Trump’s argument for invoking the Alien Enemies Act to deport migrants.