It kind of isn't up to the U.S. government. It's about how you structure your organization to have the right incentives to do the right thing.
Apple and numerous other businesses are beholden to shareholders, whose #1 demand is profit. Many shareholders are located in the U.S. - so far, so good.
At some point, the business decides that more profit is best obtained through international expansion. Apple extracts money from Europe, China, Russia etc. and delivers the desired returns. Yay.
The flipside is that if those returns are in danger of disappearing, there's now an immense pressure to stop that from happening. I don't believe the U.S. government can even help Apple if they don't want to be helped - their primary incentive is not preservation of diversity and free speech, but satisfying the shareholders.
Possible fixes:
a) Avoid conflicts of interest. Apple is not an American company at this point, it's an international company. So, limit your market reach to regions that align with your principles, i.e. don't expand to Russia and China. Of course, this can never work because public companies are legally obligated to maximize shareholder returns. Which leads to,
b) Put incentives in place to prefer doing the right thing over the profitable thing, i.e. don't sell a voting majority of your business to investors who will sacrifice principles for money.
Both of these fixes mean sacrificing market share to other, less morally grounded businesses, because you don't get to be a world leader in selling stuff by playing fair. You can't go back to playing fair once you depend on being a world leader. Apple literally can't do anything about it because of what its incentives are, and if it aligned those differently then it wouldn't be the big Apple that we give a shit about.
I don't believe there's a solution to this except supporting a decentralized market and educating others about why that's important. Apple is a lost cause, they're at the point of no return. They couldn't fix it if they wanted to. Let's make sure they're only one of several viable options going forward.