The chairman of the Metropolitan Transportation Authority, which controls New York City’s troubled subway, has resigned after the election of Gov. Andrew M. Cuomo to a third term,