Stormont has paid out hundreds of thousands of pounds in research funding to companies who subsequently were found to have breached environmental laws.