Umm... while they can't withhold your security deposit, squatting someone's in-law unit is obviously immoral. It's not your property, if they want it back, you have to move. Holding them hostage for $10k is scummy.
California isn't a feudal society, yet.
If they had a longer lease, then I’d agree the landlord can’t force them out before the lease ends.