Mississippi judge resigns after barring mother from seeing