Marx opposed welfare under bourgeois dictatorships because it's used as a way to blunt the revolutionary energy of the proletariat
“A part of the bourgeoisie is desirous of redressing social grievances in order to secure the continued existence of bourgeois society.”