The Italian subsidiary of tech giant Apple has agreed to pay €318 million ($348 million) following an investigation into tax…