Google is engaged in a secret project with one of the country’s largest health-care systems to collect and crunch the detailed personal health information of millions of Americans across 21 states, according to people familiar with the matter and internal documents.