Judge to rule if ex-cop will stand trial in fatal shooting