I haven't been able to find anything downtown cheaply but if you're cool with staying near the airport (SFO) and taking BART into the city, the Crowne Plaza, Red Roof Inn and La Quinta all offer airline discounts in the $45-65 (before taxes) range and provide hotel shuttle to airport where you can catch BART.