Raiders took advantage of loophole to save $8.7 million