Put the herbs and spinach into a food processor in batches and pulse until finely chopped (or finely chop by hand). Set aside.
Put 75ml of oil into a large, heavy-based pot on a medium heat. Add the onion and gently fry for 8 minutes, stirring occasionally, until soft and golden. Add the garlic, chillies and spices, and continue to cook for 6 minutes, stirring often.
Increase the heat to high and add the chopped spinach and herbs to the pot along with the remaining 3 tablespoons of oil. Cook for 10 minutes, stirring occasionally, until the spinach turns a dark green, almost grey colour. You want the spinach to catch a bit at the bottom, but not to burn, so turn the heat down if necessary. Stir in the sugar, lemon juice, stock and 2 teaspoons of salt, scraping the bottom with a spatula as you go. Bring to a rapid simmer, then lower the heat to medium, add the potatoes and gently cook until they are soft all the way through, about 25 minutes. Add the butter beans and cook until warmed through, about 5 minutes.
Remove from the heat and stir in the remaining 20g of coriander. Divide between four bowls, drizzle with some oil and serve with the lemon wedges alongside.