Eight nurseries in West Lothian will close their doors after controversial plans were backed by the council.