Justice Amy Coney Barrett, another Trump appointee, was widely seen coming into the argument as a pivotal vote in the case.