Rob Bresnahan Jr., a Republican and business executive, ousted the Democratic incumbent who had kept the Scranton-based district blue for more than a decade.
Although Democrats flipped at least two House seats in New York, Donald J. Trump did better than any Republican presidential candidate since the 1980s.