FDA loophole led to years of unsafe medical devices