The tech giant’s shareholders defeated a proposal from the conservative National Center for Public Policy seeking a prohibition against discrimination based on “ideology” or “viewpoint.”