NEW YORK (AP) — A man who opened fire on a packed Brooklyn subway train last year, wounding 10 passengers in a rush-hour attack that shocked New York City, pleaded guilty Tuesday to federal terrorism charges that could put him in prison for the rest of his li…