Judge sentences NY student for subway fire