A man has been sentenced to life in prison for killing his disabled roommate.