Melt butter in a saucepan over medium heat; cook and stir mushrooms, and onion until tender, about 5 minutes. Stir in broth, rice, salt, garlic powder, and black pepper. Bring to a boil; reduce heat to low, cover, and simmer until liquid is absorbed and rice is tender, 20 minutes. Remove lid and add spinach and stir until wilted.