New York's Metropolitan Transportation Authority says service has resumed on the four subway lines affected by a derailment in Harlem.