Calif. challenges court order to reduce prison population to improve conditions, citing public safety risk