Even as Justices Clarence Thomas and Ketanji Brown Jackson appeared to agree over the policy’s aim, they harshly criticized each other’s conclusions on what to do.