A mother who pleaded guilty to murdering her five-year-old daughter was sentenced to 22 years in prison.