The court found that the law’s unequal treatment of child accused and child witnesses as well as child victims was unconstitutional.