He has a competitor now that is not very good, so he is suing to slow them down.
Why do you think that money was spent a decade ago? Open AI wasn't even founded 10 years ago. Musk's funding was the lions share of all funding until the Microsoft deal in 2019
Big spend only came after MSFT, which invested $1B and then $10B, primarily in the form of credit for compute.