Two top editors at Gawker resigned to protest a decision to pull a story about a media executive seeking to pay for sex.