Man sentenced in the deaths of girlfriend and her child