James Kent, Chancellor of the State of New York