In the same skillet, melt the butter over medium-high heat. Add the garlic and stir until fragrant, about 30 seconds. Add the mushrooms and onion to the skillet; cook until soft, about 3 minutes. Reduce the heat to low. Stir in the tomatoes, brown sugar, soy sauce, vinegar, and green beans. Cook, stirring, until warmed through, about 1-2 more minutes. Taste and season with salt and pepper.