The US news organisation claims millions of its articles were used without permission to train ChatGPT.