Lawyers for Elon Musk and OpenAI make their final case in a trial that could shape AI’s future