An NPR editor who wrote a critical essay on the company has resigned after being suspended