Heat coconut oil in a large skillet or Dutch oven over medium heat; add diced onion and sauté for 5 minutes until soft and translucent.
Add minced garlic and grated ginger; cook for 1 minute until fragrant.
Stir in garam masala, turmeric, cumin, red pepper flakes, and salt; stir constantly for 1 minute to bloom spices.
Pour in coconut milk and vegetable broth, stirring to deglaze the skillet and dissolve spices.
Add drained butter beans to the skillet and bring mixture to a gentle simmer.
Simmer uncovered over medium-low heat for 12 to 15 minutes, stirring occasionally, until sauce thickens and beans absorb flavors.
Stir in fresh baby spinach and cook for 2 minutes until wilted.
Remove skillet from heat, stir in fresh lime juice, and scatter chopped cilantro over top before serving over basmati rice.