She was not speaker for the 108, 109 and 112th Congress. She was speaker for the 110 and 111th Congress. So for 6 of the past 10 congresses she was NOT the speaker and Dems were not the majority.
” Why were Republicans voting for all those expenses these past 6 years anyway when they had the majority in the House?”
Four of those years Nancy Pelosi was the Speaker of The House with a Democrat Majority.