California corrections officials said Tuesday they will comply with a federal court order to move thousands of inmates out of two Central Valley prisons where an airborne fungus has led to widespread illnesses.

A lawsuit alleging the government was negligent in exposing a man to a potentially deadly disease while he was incarcerated in California could go to trial as early as next year, after a federal judge refused to dismiss most of the case.