Pacific Gas and Electric Co. defended itself to a federal judge Wednesday amid scrutiny of its aging high-voltage power line system and corporate spending habits, arguing it was not dangerously neglectful of its infrastructure and had allocated its money wisely.