Governments negotiate their own contracts with their own terms of service. That’s one of the hoops government contractors jump through.
Like the various ai providers limit lawful use like creating AI pornography. I think it would be reasonable to keep a contractual restriction against that even when working with the government.