McElroy threw a touchdown pass to cap his first NFL drive early in the fourth quarter, leading New York to an ugly 7-6 victory Sunday and sending the Arizona Cardinals to their eighth straight loss.