Judges around the world are seeing error-riddled legal briefs that were generated with the help of artificial intelligence.