Two major phone companies are paying millions after a federal investigation found they posted the personal information of 300,000 people online.