The director of the Heritage Foundation's Project 2025 has stepped down after blowback from Donald Trump's campaign.