The decision could shape whether the use of emergency powers to bypass Congress becomes a tool of routine governance.