Judge rules on 17-year-old stabbing suspect