The ruling keeps alive a high-profile legal battle between the world’s richest man and the ChatGPT developer he helped found.