In what ways can the distinction between ‘freebies’ and public welfare investments influence state policy and fiscal responsibility?

The Supreme Court has differentiated between freebies and welfare investments. I wish to analyze how this distinction shapes government spending priorities and affects long-term economic and social development.