Apple would fight this all the way to the Supreme Court. This is IMHO a clear violation of the 1st amendment.
With such a conservative Supreme Court, I doubt they would look favorably at restricting speech of a company.
Besides, Apple’s App Store is available in many countries around the world; an American iPhone user could get restricted apps from its App Stores in other countries.