Court terminates 8-year-old girl's marriage