Democrats elected the New York representative to take over for Nancy Pelosi as the party’s leader in the House of Representatives