
In terms of the Section 17(2) of the Income Tax Act, 1961, any sum paid by the employer in respect of any obligation which, but for such payment, would have been payable by the employee is treated as perquisite and, hence, taxed as salary income. Your present employer is under obligation to deduct tax on this payment.
On the other hand, you will not get any deduction on the payment made as it was made to meet your contractual obligation with the former employer.