Virginia judge largely sides with ex-patients in hospital’s effort to pare down lawsuit abuse claims