Purchase of the employee's primary residence is a valid reason for a hardship withdrawal under the law. There are very few permissable reasons but this is one of them.
However, while the IRS says that a hardship withdrawal MAY be taken does not mean that the plan document MUST permit it. And while a purchase is a valid reason under IRS regs, I've never heard of a lease being included.