In a 6-3 decision, the court's conservative majority sided with Vice President JD Vance and other Republican challengers