The state agency overseeing Western State Hospital will pay $2.3 million to resolve a lawsuit that accused officials of negligence after a psychiatric patient was strangled to death by his roommate.