The Supreme Court was considering a challenge to a 2022 regulation that sought to regulate ghost guns.