To understand what happened, you really have to read and understand what the Supreme Court did in The Slaughterhouse Cases.
This was a case decided back in 1873 that eviscerated the PorI clause of the 14th.
Alan Gura tried to reinvigorate that clause in the McDonald
case, but was unsuccessful. The only Justice that agreed with Gura was Justice Thomas.