Facebook secretly obtained proprietary data from competitors, including Snapchat, according to newly unsealed court documents.