Israel has cancelled plans to deport migrants en masse to Africa after reaching a deal with the United Nations refugee agency.
More than 16,000 asylum seekers will instead be resettled in unspecified Western countries, Prime Minister Benjamin Netanyahu’s office said.
The rest, about 18,000 people according to Israeli media, will be given permanent residency in Israel.
Israel’s Supreme Court had blocked deportations meant to begin on Sunday.
The plan to send the migrants to African countries – reported to be Uganda and Rwanda – was condemned by Israeli activists and sparked protests.