THEY DIDN’T BUY THE HOUSE UNTIL THE BANK HAD LENT THEM THE MONEY.→...

4. They didn’t buy the house until the bank had lent them the money.

→ It was not until the bank had lent them the money that they bought the house.