The directive accused the Biden administration of using the Smithsonian to advance what the Republican president described as a “corrosive” ideology.