A judge has approved a €30,000 personal injuries settlement for a four-year-old girl whose ear piercings went all wrong.