ALBANY, N.Y. (AP) — A mid-level appeals court has declared that farmworkers have the same right to unionize as all other workers in New York state.

The Appellate Division of state Supreme Court in Albany ruled Thursday that a carve-out in state labor law excluding farmworkers from collective bargaining rights is unconstitutional.

The New York Civil Liberties Union represented fired dairy worker Crispin Hernandez in the cased filed against the state in 2016. The state Farm Bureau stepped in to defend the state labor law when Democratic Gov. Andrew Cuomo declined to, calling the law unconstitutional.

Cuomo and state Attorney General Letitia James praised Thursday's decision.

The Farm Bureau said it will appeal to the state's highest court, the Court of Appeals.

Lawmakers are considering legislation granting farmworkers the same rights as other workers.

More From WIBX 950