The European Commission and consumer authorities have reached an agreement with Temu to change its commercial practices in the European Union.