A New York man has plead guilty to planning a New Year's Eve attack last year inspired by Islamic State in which he was accused of conspiring to kill bar patrons.