Has everybody forgotten the time that Scalia and Cheney went hunting while the Supreme Court was deliberating a case against Cheney? What is illegal is for a judge to talk to a party about the case.
Seeing as-- unlike Bush v. Gore-- the Supreme Court has not agreed to hear any case against Obama, I'm sure whatever Obama and the Justices talked about, it wasn't the cases against Obama.