A judge on Tuesday approved an $11 million state settlement with families of most of the victims in last year’s Virginia Tech slayings that will avoid a court battle over whether anyone but the gunman was to blame.

Families of 24 victims — out of 32 killed by Seung-Hui Cho — will be compensated under the settlement approved by Circuit Court Judge Theodore J. Markow.