A $6 million grant will help Riverside County officials provide mental-health and substance-abuse treatment that can reduce the chances people will commit crimes again after they are released from jail.