The approval closes a seven-year legal battle for inmates who originally sued over inadequate kitchen conditions and health care.