The head of the Energy Department’s Office of Critical Minerals and Energy Innovation appeared in a jewelry ad that used her official title.