In this case “so many” gives us the meaning of there is a limit and once that limit is passed then the situation will change.
You can ask your friends for money only so many times.
Means you can ask your friends for money but there is a limit to how many times you can do this before they will say no and stop being your friend.
They can lose some votes. But if they lose too many then they won’t have enough to pass. There is a limit to how many votes they can lose before the situation changes.
Hope this helps