There is nothing at all illegal about it. That is the way the agreement was drafted and approved by all parties involved.
WN is allowing DL to use a few slots and may continue to do so but that is up to WN to decide. DL has no legal or other standing at DAL airport.