Jared Goff threw for a touchdown and completed a game-sealing first down against the team that cast him away, and the Detroit Lions won a playoff game for the first time in 32 years, beating Matthew Stafford and the visiting Los Angeles Rams 24-23 on Sunday night.