A Palestinian family that fled Gaza has been granted the right to live in the UK following an appeal - after they applied to enter the country through a Ukrainian refugee scheme.