You'll probably want the batts in first before the poly to get the vapour barrier on the warm side, but yeah spray foam isn't cheap so it's best used for spots you can't insulate conventionally.
There's the added benefit of making future work easier if you don't need to chip out a bunch of foam to run a new wire for example.