Amazon has been ordered to pay $294 million back to Luxembourg after the European Commission found that the online retailer had received illegal tax benefits.