Supreme Court Justices Barrett and Kavanaugh gave fellow conservatives advice on dealing with hostility at the Federalist Society’s annual gala.