Air sealing and insulation are two separate jobs and you need both. From the way you describe that old fiberglass, the cold in your basement is probably coming from air leaks through the rim joist assembly at least as much as from the worn out insulation itself. Compressed batts do almost nothing, but even brand new ones would still let cold air pour through the gaps around the sill plate and joist pockets.
The approach I went with on my own rim joists is the common one: cut 2-inch rigid foam board to fit between the joists, then seal every edge, every gap, and the sill plate where it meets the foundation with spray foam. The trick is to cut the foam board slightly smaller than each cavity, not a snug fit, so the spray foam can actually fill the space around the edges. A rough guide is that one can of window and door foam covers about 6 or 7 bays, so you can plan your can count once you know how many cavities you have.
Now, since money is tight, here is what I would do in your position. You can start by just running a bead of spray foam around each rim joist cavity and along the sill plate to stop the air leaks. That alone will get you an immediate improvement in how warm the basement feels, and it is by far the cheapest first step. Then when the budget allows, come back and add the foam board, or rockwool batts if you prefer, in behind it. Nothing about the two-step approach wastes the money you spend first. If you do go the foam board route, get a decent razor knife and take your time with the cuts. The cutting and the foaming feel awkward for the first few bays, but once you find a rhythm it goes fast. Rockwool batts cut slightly oversized can also just be pressure fit into the pockets once the air sealing is done, which some people find easier than fooling with foam board. Either way, seal first, insulate second. For a 1940s house in a cold climate that order matters more than which insulation you pick.