'Like looking at a car wreck': NY attorney appears before judge for citing AI-generated 'cases' in legal brief