49ers Stun Cardinals, Playoffs in Doubt