So let us look at this:
1. GitHub becomes a Maltese company. 2. GitHub allows Iranian users to use all features 3. No US company could buy a GitHub Enterprise licence, or a private org.
The export restrictions don't let them notify people that the ban is coming - once they identify the users that are under the Export Restrictions, allowing them to download (aka export) their repos is a breach. They did as much as they could to allow them to keep their accounts at all (and this is only due to export restrictions having exclusions that cover "publicly available source").
GitHub did what they had to do to avoid being censured by the US Gov, and did it better than a lot of other tech companies recently, by leaving some level of access.
If you don't like the ban, and you are in the US, contact your elected representatives, and let them know - it is the only way it changes.