A group of refugee families left stranded for two decades on a British military base in Cyprus have been granted permanent residency in the UK.