The Supreme Court on Thursday upheld a tax on foreign corporate investments in a case some worried could imperil any future attempts to enact a wealth tax on the super-rich.

The case had attracted scrutiny after conservative Justice Samuel Alito refused to recuse himself over his ties with one of the lawyers challenging the one-off tax imposed in 2017.

Alito was part of the 7-2 majority that rejected the challenge.

In the majority opinion, Justice Brett Kavanaugh said the decision was a narrow one that he indicated has no bearing on a potential wealth tax, which would involve a tax on assets, not income.