Original: Foster was unsuccessful in a bid to return to the House in 1890, but was appointed by Benjamin Harrison a year later to become Secretary of the Treasury upon the death of William Windom.
Simplified: In 1891, Benjamin Harrison made him Secretary of the Treasury due to the death of William Windom.