City lawmakers in Brazil passed what appears to be the nation’s first legislation written entirely by artificial intelligence — even if they didn’t know it at the time