Supreme Court rejects terrorism law challenge