Google is teaming with one of the country’s largest health-care systems on a secret project to collect and crunch detailed health information of millions of Americans across 21 states.