Here is an approach with Compositing. Basically you combine two Render Layers with their own settings through a depth value switch.
The first layer uses
World settings and we want to render the scene without world color influence. For this layer enable the Depth Pass through View Layer Properties > Passes > Data > Include > Z and remove the world color settings.
The second layer is for rendering the world settings. Setup another view layer
ViewLayer_001 where you disable the scene objects and create a new scene
Scene.001 where you can install a new world data block
World.001 with your world color settings.
Now as you can see in the screenshot, combine these two render layers by testing against the depth value. Just make the value big enough, such it's behind all your scene objects. If that's all too complicated, you can also just add a blue RGB node in the second Image input socket of the Mix node.