New York lawmakers advanced legislation on Wednesday that would prevent governors from accepting campaign cash from people they appoint to state boards and commissions.

The bill, which sailed through the State Senate on a bipartisan 60-2 vote, was introduced in response to a report in The New York Times earlier this year revealing that Gov. Andrew M. Cuomo had raised about $890,000 from his appointees, despite signing an executive order on his first day as governor in 2011 that seemed to ban the practice.

The legislation would effectively put the executive order into law.

Mr. Cuomo’s office justified the fund-raising by saying it had interpreted the order as only applying to appointees that the governor can fire, and those who are required to file financial-disclosure reports. It only named three minor boards that fit such criteria: the Albany Convention Center Authority; the Capital Program Review Board at the Metropolitan Transportation Authority; and the Occupational Safety and Health Hazard Abatement Board.

“I think we need a bright line so there’s no issue to discuss, so there is no question of interpretation, so that there’s not ambiguity, so that executive appointees are prohibited from donating,” said Senator Michael H. Ranzenhofer, a Republican who represents the region between Buffalo and Rochester, and is the sponsor of the legislation.