DoorDash posted a profit of $141 million compared with a loss of $154 million a year ago. The company said it would buy back shares worth up to $5 billion during fiscal 2025, a boost from the $1.1 billion it announced for 2024.