49ers sign 2-time Super Bowl champion for stretch run