Instagram is changing its algorithm to rank reshared posts more fairly amid Palestinian claims it was censoring content.