It doesn't affect the strength.
it's the distance between the grips and fork that affect strength. Since it's making your bars taller, then yes, it will be weaker than riding the same bars without the spacers.
If you had smaller bars with spacers, or bigger bars with no spacers, they will be...