California lawmakers are on the cusp of approving a landmark bill to shield the state’s major electric companies from future wildfire costs and reshape key aspects of how those utilities are regulated, a sweeping endeavor that could become law by Friday after less than a week of public debate in the Legislature.