William L. Marcy, Secretary of State