As president , Republican John McCain or Democrat Barack Obama would have the chance to appoint at least one new justice to the U.S. Supreme Court .