New York State and the union representing New York State's correction officers reached an agreement late Saturday to end a wildcat strike that started Feb. 17, during which seven prisoners died.