Yes, moonlighters (the surgeon in that room) are expensive (to both you and the hospital). Why do you think that person wound up there?
Otherwise underpaid, overworked surgical residents leave either due to truly catastrophic burnout, mental illness, family emergency or pregnancy.
They are replaced by moonlighters, because the economics of the surgery are that the nurses and other unionized employees get mandatory breaks, so the seemingly 1-2 hour delay waiting for a different resident to be free balloons into a multi-staff scheduling fiasco. We could amortize all those costs into "surgery minutes" which are paid whether or not the literal room is in use or whatever.
It's a math problem if by saving surgery minutes, the hospital saves real economic money for itself, the patient or the state, so I'm not sure if that is or is not the case in your particular case.
What's interesting isn't that there's legislation one way or another, or that you feel like you got a raw deal. The legislation isn't going to change what it says it will, because it will still make sense to hire moonlighters. And motivated people like you will still somehow still wind up paying the cost.
The real test of your merit is whether or not you think in the grand scheme of things, this is fair. Are you frustrated that there may have been a pregnant resident, and that's why there's a moonlighter in the operating room?
What does justice look like there? Cut you a check for thousands of dollars? That never happens. Retribution on residents who might get pregnant? That's what happens.
Your situation is shitty. I know in most movies, books and the press, the doctor is usually the antagonist. We live in a world that resents their disproportionately immigrant backgrounds, disproportionately even gender balance compared to other professions, and most of all their pay, despite their hard work. How do you feel?