For over a decade, U.N. aid agencies poured millions into the company despite warnings from human rights advocates.