Yes, the collective (the government as elected by the people) decides how to spend other peoples money. That is not a moral justification.
This is how democracy works. But if collectively a people democratically decide to do something that doesn't make it morally correct.
You do have to follow the law, but what I'm saying is that we need to consider the moral implications of the law being suggested.