It 'should' be OK just to get you through inspection, just change it back ASAP.

2 cautions tho:

1. since the AC seems to affect the headlights in this configuration, don't use it till you change things back. You may be dragging down the voltage on that relay and could end up sending too much current to the clutch in the AC compressor.

2. don't use the headlight switch for any reason till you change things back. You could send more current back through the circuit for the headlight switch than it could handle and potentially fry something.