Lawsuit settled over treatment of disabled residents in state-run institution