US lawyer uses ChatGPT to write statement, forced to apologize