This is a bad idea. As you point out, you are using after tax dollars to re-pay your pre-tax dollars. So while you might save a little bit on tax now with the IRA contribution, it won't be that much because you'll lose most it on the backend when you repay.
But it is worse than that, because when you retire, you are taxed again on the withdrawals.