Correct, the ruling said that Section 5 gives congress the power, via appropriate legislation to enforce all articles or sections of the 14th.

Here's the ruling in a nutshell:

The Supreme Court has not only held that states cannot enforce the 14th Amendment for Federal offices, but it held that Congress must exclude insurrectionists from office, and points to the predecessor to 18 USC 2383 as means to exclude someone.

Quote
Instead, it is Congress that has long given effect to Section 3 with respect to would-be or existing federal officeholders. Shortly after ratification of the Amendment, Congress enacted the Enforcement Act of 1870. That Act authorized federal district attorneys to bring civil actions in federal court to remove anyone holding nonlegislative office—federal or state—in violation of Section 3, and made holding or attempting to hold office in violation of Section 3 a federal crime. §§14, 15, 16 Stat. 143–144 (repealed, 35 Stat. 1153–1154, 62 Stat. 992–993). In the years following ratification, the House and Senate exercised their unique powers under Article I to adjudicate challenges contending that certain prospective or sitting Members could not take or retain their seats due to Section 3. See Art. I, §5, cls. 1, 2; 1 A. Hinds, Precedents of the House of Representatives §§459–463, pp. 470–486 (1907). And the Confiscation Act of 1862, which predated Section 3, effectively provided an additional procedure for enforcing disqualification. That law made engaging in insurrection or rebellion, among other acts, a federal crime punishable by disqualification from holding office under the United States. See §§2, 3, 12 Stat. 590. A successor to those provisions remains on the books today. See 18 U. S. C. §2383
The bottom line is this: Taken in tandem with SCOTUS’ punt on Trump’s immunity bid, this seems like an invitation for Jack Smith to supersede Trump with inciting insurrection. After all, SCOTUS has now upheld the DC Circuit opinion that says there’s no double jeopardy problem with trying someone for something on which they were acquitted after impeachment.


Contrarian, extraordinaire