A man accused of setting a woman on fire inside a New York City subway train and then watching her die after she was engulfed in flames has made an initial court appearance and will remain in custody.