New York leaders, Gov. Cuomo reach deal on budget