Judge to hear motions in Major Nidal Hasan case