Your facts are a bit complicated because you say first there was a foreclosure but then there wasn't.
Generally speaking, a landlord has the right to collect rent for the entire time that the landlord owns the property. If you haven't paid, the landlord can serve you with a 3-day notice to pay or quit for unpaid rent (up to 12 months), and then sue you in an unlawful detainer lawsuit to evict you if you do not pay in full.
You need to look at the lease itself to see if it has a "holdover" provision. Usually, your tenancy becomes a month-to-month tenancy after the expiration of the fixed term lease.
Frank W. Chen is licensed to practice law in the State of California. The information presented here is general in nature and is not intended, nor should be construed, as legal advice. This posting does not create any attorney-client relationship with the author. For specific advice about your particular situation, consult your own attorney.
You may not like this answer, but the truth is that a landlord's personal finances are none of a tenant's business. Whether or not the house is or was in foreclosure does not affect a tenant's obligation to pay rent. The house was at all relevant times the property of your landlord (she apparently settled the foreclosure action; the foreclosure did not occur; and she has resolved her issues with her bank) and, under your agreement, you were required to pay rent. The landlord would be justified in evicting you for non-payment of rent. If you want to continue living there, it would be wise to patch up your differences with the landlord and work out a plan to come current with the rent.