In the US, there are multiple Supreme Court precedent cases that force profit-maximizing. Shareholders can sue the CEO and board to maximize profit seeking.
So yes, increasing shareholder value is enshrined in US law. Only private corporations can get around that rule. Also, a corporation cannot be forced to break the law to maximize profits, that’s just something most CEO’s are willing to do for fun.