EU agrees 'historic' deal with world's first laws to regulate AI