An Israeli court on Wednesday gave a life sentence to the Palestinian killer of an off-duty Israeli soldier and ordered that he serve a minimum of 40 years behind bars.