The indictment accuses Stephanie M. Spencer of taking a lighter to a mattress that the child was sleeping on.