California ordered to reduce overcrowded prisons