The US refused to defend the Commerce Clause, so the circuit court did not consider it, though the Commerce Clause precedent would have likely demanded a different result.
This is circuit split engineering by the administration, meant to allow the Supreme Court to overrule its precedent on the Commerce Clause or whatever.