Pacific Gas & Electric Corp. is close to finalizing terms for a $13.5-billion payout to victims of wildfires ignited by its power lines, a key step toward resolving the biggest utility bankruptcy in U.S. history, according to people familiar with the matter.