A Texas man was sentenced Thursday to 40 years for charges related to the death of a 4-year-old girl who went missing for several weeks before her remains were found in Arkansas.