Amid court battles, Pakistan’s ex-Premier Khan steps down from top party post