Lawyer used ChatGPT to file legal papers with disastrous results