The U.S. Supreme Court on Monday announced its first formal code of conduct governing the ethical behavior of its nine justices, bowing to months of outside pressure over revelations of undisclosed luxury trips and hobnobbing with wealthy benefactors.