Kirklees: Closure-threatened dementia care homes to stay