At a gathering of right-wing activists, Donald Trump vowed to target federal diversity programs and to use the Justice Department to investigate schools and corporations over supposed racial discrimination.