The Supreme Court's 7-2 ruling is a victory to Trump and Republicans in the final sprint to the November midterm elections.