Charter and N.Y. state reach agreement