The measure now awaits Gov. Andrew Cuomo’s signature. His office says a decision has not been made yet, but the state is committed to electrifying its transportation sector.