When the UN recognised the existence of Israel it did not recognise the right of one set of inhabitants to exclude to another set of inhabitants who had fled as refugees in the war. It would have been impossible to recognise such a breach of human rights.