Judge recorded on Facebook, texting while presiding over trial for 2-year-old's death