Judge rules against parents of two victims, who allege school officials failed to follow mandated security protocol and order lockdown that may have saved lives