General Electric Co swung back to a financial loss in the second quarter as the cost of restructuring its ailing power business and the grounding of a Boeing Co jetliner drained more cash than expected from GE’s otherwise profitable industrial units.