The decisions suggest that the battle over using a wartime law, the Alien Enemies Act, to deport migrants is certain to persist.