De Sousa y Macedo, Antonio, Secretary of State