Sir Keir Starmer said he wants to close a “loophole” that allowed a Palestinian family the right to remain in the UK after they applied through a scheme designed for Ukrainian refugees.