I think perceiving laws at the US as unpredictable is just showing that you haven’t seen countries with truly dysfunctional judicial. Of course justice can be tricky. Of course courts can be flawed. It’s a spectrum, and we’re not at the worst spot in it so far (maybe apart from SC, SC is terrible).
I’m not sure what’s a point of federal courts being creation of Congress (ie laws) and not creation of constitution. Most of the executive branch is creation of Congress too.
The nicety of laws and courts you can (by yourself) go and read courts opinions and arguments and made your own judgements who’s at fault - executive branch ignoring laws and stressing the system with bad faith behavior, or courts deciding unjustly by reading laws wrongly. I did this for bunch of court opinions and don’t expect good faith from the administration anymore.