Legislators voted to support Cayuga Health nurses who want to form a union.