You know this just occurred to me but when they try to put Harry on trial for using magic in front of a muggle there are whole case could have been thrown after the fact that Harry's Aunt, Uncle and cousin all know about magic So by him defending himself he wasn't breaking the Statue of secrecy