Japan said it "will carefully examine the content of this ruling and the Trump administration's response to it, and respond appropriately."