The commercial closes with a shot of the Capitol as the number for the State Senate switchboard flashes on the screen. The Senate must act in the next four weeks if it is to pass a same-sex marriage bill before the Legislature adjourns. The Assembly passed the bill this month, and Gov. David A. Paterson has pledged to sign it.