An Indian court handed life sentences to 44 pirates captured by the Indian Navy, praising the military’s prompt action.