The Lady Chief Justice voiced her concern after the prime minister said a judge had made the "wrong decision" in letting a family from Gaza settle in the UK under a Ukrainian refugee scheme.
England's most senior judge says she is "deeply troubled" by Sir Keir Starmer and Kemi Badenoch's exchange about a Gazan family coming to the UK under the Ukraine scheme.
Sir Keir made the comments during last Wednesday's Prime Minister's Questions after Conservative leader Ms Badenoch raised the case.
Ms Badenoch said the decision, made following two appeals, was "completely wrong" and it "cannot be allowed to stand".
The Palestinian family's application under the Ukrainian resettlement scheme was initially rejected but they appealed, and that was dismissed by a first-tier immigration tribunal judge in September.