。
Poverty taught him independence.
Literal
Poverty [subject-が] him [to-に] becoming-independent thing [object-を] taught.
Poverty is the grammatical subject that 'teaches.' 独立すること nominalizes 'becoming independent.' 教える takes both an indirect object (彼に) and a direct object (独立すること). An interesting personification of poverty as a teacher.