Israel set to legalise thousands of settlements