Before a bill goes before the full Senate it gets debated/edited in a relevant committee, if the committee votes against the bill it never goes up for the full vote.
The committees are generally permanent, not instantiated per bill, and the senators on the committee doesn't change often (the majority party does get to have a majority membership in all the committees) but yeah, committee membership can be really powerful and gets used as a reward/threat by party leadership.