Massive campaign spending can overcome unfavorable political conditions for candidates