Supreme Court ruling limits manipulation of state ads