Congress has the Article I Section 8 right to regulate commerce.
This means it can tell manufacturers how to design products.
Congress has the Article I Section 8 right to raise armies which means it has the right to tell Apple (and Samsung)programmers what to do.
Uh, Samsung is in South Korea. National sovereignty? Every hear of it? Apple? Are we at war? Regulating commerce does not extend to telling anyone how to design their products beyond environmental hazards and safety. They attempted to do that with firearms. Didn't get too far.