The justices turned away Musk’s appeal of a lower court’s decision upholding the 2018 settlement reached after he said on social media that he had “funding secured” to take Tesla private.