Feds find state hospital put patients at risk, almost termin