Millions of people were poised to lose power throughout northern and central California after Pacific Gas & Electric Co. announced Tuesday it would shut off power in the largest preventive outage in state history to try to avert wildfires caused by faulty power lines.