I mean, spending money on a public service with new technology is hardly ever a bad idea. You recoup the money by having a better quality of life for everyone which then leads to economic growth and in turn more tax revenue, and so on.
Of course, there are better places to spend money on than AI, but its far from the worst ideas.