The tax immunity deal is likely illegal.