New York served as the capital of the United States from 1785 until 1790