This city’s sleek, European-made subway cars, riding on rubber tires that barely make a noise on the steel rails, carry 2.4 million passengers a day during the week in a metro system considered South America’s most modern. Now it has another distinction: It is about to become one of the first subways in the world to get most of its energy from sun and wind, part of a rapid expansion of renewables that has taken