If you undertook training in the United States for the addition of an instrument rating while admitted under B-class visa (includes aliens admitted under the visa waiver program) then you were in breach of immigration law. See the memorandum from the DOJ, and regulations at 8 CFR, referred to earlier in this thread.