A man accused of setting a woman on fire inside a New York City subway train and then watching her die has been arraigned.