Lions snap 3-game skid, beat struggling Packers