Court upholds life sentence for child rapist after failed appeal