I think you all may be reading too much into this! The article doesn’t say they switched parties. It says they voted with Republicans on the issue to change the leadership. Or did I misinterpret the article?
The thing is, in places like the NY Senate, the majority leadership can completely block any bill they want to. In this case, they likely will be blocking the gay marriage bill.