Apple must repay a record 13 billion euros in back taxes in Ireland, the EU Commission has ruled in one of its largest such cases after ruling that sweetheart tax deals for the US tech giant were illegal.