The contract between you and the landlord is independant of the contract between the landlord and his bank.
You contracted with him for space. He provided the space. He had NO legal obligation to use your rent to make his mortgage payments. When you have to move, you can stop paying the rent. You were not defrauded. You got the space you paid for.
Lawyer
23 years as attorney NY and FL Bars.