The veto is a blow to the powerful Transit Workers Union, which had supported the effort for decades. Budget watchdogs welcomed the governor’s decision.