In a large skillet, melt the butter over medium-high heat. Add the shallots and garlic and sauté until tender, about 2 minutes. Add the tomatoes, including their juices, and cook until heated through. This should take about 3 minutes. Add the beans and cook until the juices evaporate and the beans are fork tender, stirring often, about 10 minutes. Stir in the wine and basil and simmer for 2 minutes. Season with salt and pepper. Serve immediately.