How to reproduce:
1. Open the attached project "CustomLit-TargetLayerBug.zip"
2. Open Assets/Scenes/SampleScene.unity
3. Open Edit>Project Settings...>Graphics
4. Disable Render Graph>Compatibility Mode in the Project Settings window
Expected results: Sprites are not affected by the lights
Actual results: Sprites are affected by the lights
Reproducible with: 6000.0.21f1
Could not test with: 2021.3.44f1, 2022.3.47f1 (no Render Graph)
Reproducible on: Windows 10 22H2
Not reproducible on: No other environment tested