Stanford's Emmet Kenney kicked a career-long 52-yard field goal as time expired to secure a 38-35 victory over Louisville, ending a six-game losing streak.