An effort to repair decades’ worth of infrastructure deterioration in the subway system has increased commutes for some, but others have sought to profit from the chaos.