A DoorDash driver accused of dousing a customer’s order in a substance told authorities that she had been trying to target a spider, officials said.