The construction project by Chinese government-owned companies is a major feat for a city that has long sought to join other South American capitals with rail systems.