The court's changing ideological makeup could wind up giving states like California less legal elbow room to challenge Trump policies.