What does "challenging the unjust system..." function as?
And yet, the dream of freedom propelled Mandela into the practice of law, challenging the unjust system that took away 27 years of his life but not his dream of freedom.
Is "challenging the unjust system" the Object of into or does it work as an adervial?