Money is not the root of evil. There is so much greed in the hearts of humans and that is where evil emanates from not money. Money is only a medium of exchange. Money doesn't cause stress, inequality and loss of humanity rather it is people who cause stressful situations for other humans to have to deal with because of greed, they want to accumulate more than the others and so it leads to inequality because in doing so they oppress and suppress the weak in the society. Even if the government provides these basic amenities, social media and the world we live in would try to convince others that they are not living well enough because they don't have a car, or the latest of whatever is trending. I don't think AI can change the situation either. Humans created this mess and only humans can fix it.
The OP got the quote very wrong because the right statement is that "the love of money is the root of all evil". It is when people love money more than anything they will be willing to do the impossible to get it. If you love humanity more than money, you will not kill to make money neither will you harm others because of money. Money is good and necessary to make life worthwhile but we must gauge our desire for it so that it does not overtake our sense of justice, becloud our heart and replace our value system. As long as these limits are kept intact, money will always be used for what it is meant for.