Mid-pandemic I saw another manager go from enthusiastic to despondent overnight when his upcoming hiring headcount was cut to zero and his lovingly cultivated recruiting pipeline was basically worthless. He left shortly after, unsurprisingly. It was painful to watch and taught me a lesson in contingent value in management. I don't mean to say I know better though, he was definitely a better manager than me lol.
The nature of work is that it's not a cleanroom lab or a business school case study; lots of difficult and unfair obstacles exist, and your job is to overcome them. To me, that defines 'job' like the sea defines 'sailor'. You're very lucky when that isn't the case.
Realistically, there is some judgment involved and matters of degree, and there are limitations, but the best people find a way using the resources they have.