Marc Lore’s Wonder agreed a deal to buy the food-delivery startup from Europe’s Just Eat Takeaway.com.