I was crossing an intersection and traffic was moving fine, but stopped right as I was approaching the end. The light turned yellow and then red, and my only options were to stay in the intersection and block crossing traffic, or pass the couple of stopped cars in front of me by driving to the left of the double-yellow. I looked down the road and there was no oncoming traffic at all, nor any streets or driveways close enough to catch me off guard while passing the stopped cars, so I figured that was the best route to take for the convenience and safety of all cars involved. I plan using a similarly worded statement to fight the ticket, but I'm wondering if anyone has any additional advice or can point me to any vehicle codes that could help me out. Many thanks.

