A western New York man has pleaded guilty to vehicular homicide and driving under the influence of drugs in a crash that killed six Amish farmers and injured eight others last July.