Judge rules Maine mother accused of killing daughter is competent to stand trial