Mississippi judge resigns after barring mother