Ralph was a metro bus driver. I don't think he worked directly for the city but his company, Gotham Bus Lines maybe(?) was probably a city contractor. So in a sense he was dependent on government.
One thing is for sure, Ralph Kramden would be an "essential worker" at this point, and just for some perspective, he only needed that one job to afford a roof over his head, food, utilities, and even healthcare, and it's likely he could have afforded night school or some other higher education if he wanted to upgrade, or he could have taken advantage of plentiful union apprenticeships to move into a higher paying trade.
None of the above is the reality now.