A man convicted of killing his pregnant girlfriend and then burying her body and setting fire to an apartment will spend at least the next 45 years in prison.