Facebook ignited a firestorm over how it manages third-party access to its users’ information, after it said a firm with ties to the 2016 Trump campaign improperly kept data for years despite saying it had destroyed those records.