Man is sentenced for killing mother and baby