The ruling is the first to confront the Trump administration’s vacillating views about how far Trump intended to go with his blanket pardon.