America’s relationship with its European allies is under mounting stress over increasingly divergent views of online censorship, tech innovation and the best way to regulate artificial intelligence.