Jana Duggar, 31, has been charged with endangering the welfare of a child and taken a plea deal