The New York congressman was nominated after Democrats gained control of Congress in the midterm elections.