Thousands of parents whose children were taken into care to have cases re-opened