A U.S. District Court issued a timeline by which the Department of Social and Health Services (DSHS) must fix problems that have forced mentally ill defendants to languish in jails for months, waiting for the agency to provide them with mental health evaluations and treatment.